[LyX/master] Add regression test for #13315

Scott Kostyshak <[email protected]> Fri, 15 May 2026 17:39:59 +0000
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 7dd4610e6721713861cbb622d954847088fb11e2
Author: Scott Kostyshak <[email protected]>
Date:   Fri May 15 18:34:34 2026 +0200

    Add regression test for #13315
---
 .../lyxbugs-resolved/13315-poly-closing-cjk.lyx    | 117 +++++++++++++++++++++
 development/autotests/invertedTests                |   4 +
 2 files changed, 121 insertions(+)

diff --git a/autotests/export/latex/lyxbugs-resolved/13315-poly-closing-cjk.lyx b/autotests/export/latex/lyxbugs-resolved/13315-poly-closing-cjk.lyx
new file mode 100644
index 0000000000..69d50ef2ee
--- /dev/null
+++ b/autotests/export/latex/lyxbugs-resolved/13315-poly-closing-cjk.lyx
@@ -0,0 +1,117 @@
+#LyX 2.6 created this file. For more info see https://www.lyx.org/
+\lyxformat 650
+\begin_document
+\begin_header
+\save_transient_properties true
+\origin unavailable
+\textclass scrartcl
+\begin_preamble
+% Remove bullet list vertical space
+% \setlist[itemize]{nosep}
+\end_preamble
+\options DIV=calc
+\use_default_options true
+\begin_modules
+enumitem
+\end_modules
+\maintain_unincluded_children no
+\language canadian
+\language_package default
+\inputencoding utf8
+\fontencoding auto
+\font_roman "tgpagella" "Noto Serif CJK HK"
+\font_sans "tgheros" "FreeSans"
+\font_typewriter "tgcursor" "FreeMono"
+\font_math "auto" "auto"
+\font_default_family default
+\use_non_tex_fonts true
+\font_sc false
+\font_roman_osf false
+\font_sans_osf false
+\font_typewriter_osf false
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\use_microtype true
+\use_dash_ligatures true
+\graphics default
+\default_output_format default
+\output_sync 0
+\bibtex_command default
+\index_command default
+\float_placement class
+\float_alignment class
+\paperfontsize default
+\spacing single
+\use_hyperref false
+\papersize default
+\use_geometry false
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 1
+\use_package esint 1
+\use_package mathdots 1
+\use_package mathtools 1
+\use_package mhchem 1
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
+\cite_engine basic
+\cite_engine_type default
+\biblio_style plain
+\use_bibtopic false
+\use_indices false
+\paperorientation portrait
+\suppress_date true
+\justification default
+\crossref_package refstyle
+\use_formatted_ref 0
+\use_minted 0
+\use_lineno 0
+\backgroundcolor none
+\fontcolor none
+\notefontcolor lightgray
+\boxbgcolor red
+\table_border_color default
+\table_odd_row_color default
+\table_even_row_color default
+\table_alt_row_colors_start 1
+\index Index
+\shortcut idx
+\color #008080
+\end_index
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\paragraph_indentation default
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
+\papercolumns 2
+\papersides 1
+\paperpagestyle default
+\tablestyle default
+\tracking_changes false
+\output_changes false
+\change_bars false
+\postpone_fragile_content true
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
+\docbook_table_output 0
+\docbook_mathml_prefix 1
+\docbook_mathml_version 0
+\end_header
+
+\begin_body
+
+\begin_layout Standard
+The Chinese for hello is 
+\lang chinese-traditional
+你好
+\lang canadian
+.
+\end_layout
+
+\end_body
+\end_document
diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests
index efec8a9cc3..74204e9a23 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -156,6 +156,9 @@ export/examples/ru/Presentations/Beamer_lyx(16|20)
 # see: https://www.mail-archive.com/search?l=mid&q=ildx4xd4o7ybeqroh3blxgnxqnsqnte256utip2fbmcwi4zolz%40wsh7ez36kkhl
 export/templates/Articles/American_Psychological_Association_%28APA%29,_v._7_xhtml
 
+# the fix was for a different export
+export/export/latex/lyxbugs-resolved/13315-poly-closing-cjk_(dvi3_texF|pdf5_texF|pdf2|pdf3)
+
 
 # ==============================================================
 Sublabel: ert
@@ -600,3 +603,4 @@ Sublabel: should fail
 #!export/export/latex/lyxbugs-resolved/c0b73f6f-missing-reference-should-fail2_docbook5
 export/export/latex/lyxbugs-resolved/c0b73f6f-missing-reference-should-fail_.*
 export/export/latex/lyxbugs-resolved/c0b73f6f-missing-reference-should-fail2_.*
+
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs