[LyX/2.5.x] tex2lyx: Handle newlines in table column specification

Juergen Spitzmueller <[email protected]>
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 2ee0fe428ccfaceae2bbaebc93e6bf04e6c83e5a
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Apr 23 12:40:58 2026 +0200

    tex2lyx: Handle newlines in table column specification
    
    (cherry picked from commit 32bbe7841e333245c5b5e0e402f754d825e921fc)
---
 src/tex2lyx/table.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tex2lyx/table.cpp b/src/tex2lyx/table.cpp
index c9d05b45b4..eeed300d65 100644
--- a/src/tex2lyx/table.cpp
+++ b/src/tex2lyx/table.cpp
@@ -380,6 +380,11 @@ void handle_colalign(Parser & p, vector<ColInfo> & colinfo,
 			continue;
 		}
 
+		if (t.cat() == catNewline) {
+			p.skip_spaces();
+			continue;
+		}
+
 		switch (t.character()) {
 			case ' ':
 				// whitespace, ignore.
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.