diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-29 14:47:20 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-05-29 16:50:54 +0200 |
commit | 949d1ee783f58504fdf7cb6b6a164384ae82533f (patch) | |
tree | 1ebf71caef8f963049df0550e3f97b56576651c7 /sw/source | |
parent | d7ddac208516ce2350c84c434aad933b345c9509 (diff) |
ReqIF: 'ol' elements must have no 'type' attribute
Change-Id: I62098bac9dc3751f7b939cbf94f1561b4539a294
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152368
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/html/htmlnumwriter.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlnumwriter.cxx b/sw/source/filter/html/htmlnumwriter.cxx index 98b581700224..6f8f52cc3f7c 100644 --- a/sw/source/filter/html/htmlnumwriter.cxx +++ b/sw/source/filter/html/htmlnumwriter.cxx @@ -219,8 +219,10 @@ SwHTMLWriter& OutHTML_NumberBulletListStart( SwHTMLWriter& rWrt, // determine the type by the format char cType = 0; - switch( eType ) + if (!rWrt.mbReqIF) // No 'type' attribute in ReqIF { + switch (eType) + { case SVX_NUM_CHARS_UPPER_LETTER: case SVX_NUM_CHARS_UPPER_LETTER_N: cType = 'A'; @@ -235,6 +237,7 @@ SwHTMLWriter& OutHTML_NumberBulletListStart( SwHTMLWriter& rWrt, case SVX_NUM_ROMAN_LOWER: cType = 'i'; break; + } } if( cType ) { |