commit 3b740d0c8f04d16e686bd71d6545b14d393eb022
Author: Thibaut Cuvelier <[email protected]>
Date: Wed Jul 15 16:15:26 2020 +0200
DocBook: add support for LYX_ALIGN_BLOCK and LYX_ALIGN_DECIMAL in tables
---
src/insets/InsetTabular.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 5c5241e..2c38e3a 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;
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs