diff --git a/autotests/export/docbook/basic.xml b/autotests/export/docbook/basic.xml index c03a26c12d..2248a2cbf4 100644 --- a/autotests/export/docbook/basic.xml +++ b/autotests/export/docbook/basic.xml @@ -153,31 +153,31 @@ I am no more code. I am a table caption below the table. - + Table 1 - + Table 2 - + Table 3 - + Row 1 - - + + Col 3, row 1 - + Row 2 - - + + Col 3, row 2 @@ -187,31 +187,31 @@ I am no more code. I am a table caption above the table. - + Table 1 - + Table 2 - + Table 3 - + Row 1 - - + + Col 3, row 1 - + Row 2 - - + + Col 3, row 2 @@ -220,31 +220,31 @@ I am no more code. - + Table that has no caption 1 - + Table that has no caption 2 - + Table that has no caption 3 - + Row 1 - - + + Col 3, row 1 - + Row 2 - - + + Col 3, row 2 diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 9b4f175f74..5242775e7f 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3842,7 +3842,7 @@ docstring Tabular::xmlRow(XMLStream & xs, const row_type row, OutputParams const const std::vector styles = computeCssStylePerCell(row, c, cell); std::string attr_str_prefix = "style='" + style.str(); - if (!styles.empty()) + if (!style.str().empty()) attr_str_prefix += "; "; for (auto it = styles.begin(); it != styles.end(); ++it) { attr_str_prefix += *it;