From 3b740d0c8f04d16e686bd71d6545b14d393eb022 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Wed, 15 Jul 2020 16:15:26 +0200 Subject: [PATCH] DocBook: add support for LYX_ALIGN_BLOCK and LYX_ALIGN_DECIMAL in tables --- src/insets/InsetTabular.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 5c5241e069..2c38e3a7d9 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3521,6 +3521,14 @@ void Tabular::docbookRow(XMLStream & xs, row_type row, attr << "align='"; switch (getAlignment(cell)) { + case LYX_ALIGN_BLOCK: + attr << "justify"; + break; + case LYX_ALIGN_DECIMAL: { + Language const *tlang = buffer().paragraphs().front().getParLanguage(buffer().params()); + attr << "char' char='" << to_utf8(tlang->decimalSeparator()); + } + break; case LYX_ALIGN_LEFT: attr << "left"; break; -- 2.39.5