From baccce7d2de92dcf57eb2afa8492e56a4805b1af Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Mon, 26 Feb 2024 16:09:26 +0100 Subject: [PATCH] DocBook: in a table, fix a typo in a condition. Before this patch, all table cells had a semicolon at the beginning of their style: + 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; -- 2.39.5