diff --git a/autotests/export/docbook/issue1732_charstyles-docbook.lyx b/autotests/export/docbook/issue1732_charstyles-docbook.lyx new file mode 100644 index 0000000000..8a5ece15d2 --- /dev/null +++ b/autotests/export/docbook/issue1732_charstyles-docbook.lyx @@ -0,0 +1,106 @@ +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 598 +\begin_document +\begin_header +\save_transient_properties true +\origin unavailable +\textclass article +\use_default_options false +\maintain_unincluded_children no +\language english +\language_package default +\inputencoding auto-legacy +\fontencoding auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\float_placement class +\float_alignment class +\paperfontsize default +\spacing single +\use_hyperref false +\papersize default +\use_geometry false +\use_package amsmath 0 +\use_package amssymb 0 +\use_package cancel 0 +\use_package esint 0 +\use_package mathdots 1 +\use_package mathtools 0 +\use_package mhchem 1 +\use_package stackrel 0 +\use_package stmaryrd 0 +\use_package undertilde 0 +\cite_engine basic +\cite_engine_type default +\biblio_style plain +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\use_lineno 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tablestyle default +\tracking_changes false +\output_changes false +\change_bars false +\postpone_fragile_content false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\docbook_table_output 0 +\end_header + +\begin_body + +\begin_layout Standard + +\series bold +Fett +\series default +\emph on +hervorgehoben +\emph default + +\family typewriter +monospace +\family default +\bar under + unterstrichen. +\end_layout + +\end_body +\end_document diff --git a/autotests/export/docbook/issue1732_charstyles-docbook.xml b/autotests/export/docbook/issue1732_charstyles-docbook.xml new file mode 100644 index 0000000000..0ed9b879ae --- /dev/null +++ b/autotests/export/docbook/issue1732_charstyles-docbook.xml @@ -0,0 +1,7 @@ + + +
+Fett hervorgehoben monospace unterstrichen. + +
\ No newline at end of file diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp index a8ac4eaa3e..d29362eb51 100644 --- a/src/output_docbook.cpp +++ b/src/output_docbook.cpp @@ -104,11 +104,11 @@ string fontToRole(xml::FontTypes type) return ""; // Outputs a case xml::FontTypes::FT_TYPE: return ""; // Outputs a + case xml::FontTypes::FT_UBAR: + return "underline"; // All other roles are non-standard for DocBook. - case xml::FontTypes::FT_UBAR: - return "ubar"; case xml::FontTypes::FT_WAVE: return "wave"; case xml::FontTypes::FT_DBAR: