Hi,

thank you very much for investigation, the 2.5.dev output

<article ...>
 <title>The ipv6calc Homepage</title>
 <address role='right-address'>pb at bieringer dot de</address>
 <author>
   <firstname>Peter</firstname>
   <surname>Bieringer</surname>
   <affiliation>
    <address>pb at bieringer dot de</address>
   </affiliation>
 </author>
 <revhistory>
  <revision>
   <revnumber>12.0.0</revnumber>
   <date>2025-01-28</date>
   <authorinitials>PB</authorinitials
  </revision>
 </revhistory>
<section>
<title>General</title>

looks like in this part mostly identical again with LyX 2.3
https://github.com/pbiering/ipv6calc/blob/4.2.2/doc/ipv6calc.lyx
https://github.com/pbiering/ipv6calc/blob/4.2.2/doc/ipv6calc.xml

<article lang="en_US">
 <articleinfo>
  <title>The ipv6calc Homepage</title>
  <author>
   <firstname>Peter</firstname>
   <surname>Bieringer</surname>
   <affiliation>
    <address>pb at bieringer dot de</address>
   </affiliation>
  </author>
  <revhistory>
  <revision>
   <revnumber>11.1.1</revnumber>
   <date>2024-02-15</date>
   <authorinitials>PB</authorinitials>
  </revision>
 </revhistory>
</articleinfo>
<sect1>
<title>General</title>


Enclosure in <articleinfo>...</articleinfo> got lost, was this intended?

<sect1> turned into <section> btw.


Please check also behavior in 2.5.dev if in LyX file following is removed:

\begin_layout Right Address
pb at bieringer dot de
\end_layout

resulting in XML
 <address role='right-address'>pb at bieringer dot de</address>

because this was added from 4.2.2 to 4.3.0, but not required (redundant) but had enabled display of ERT as XML comment at least.

Regards,
        Peter

Am 07.02.25 um 00:55 schrieb Thibaut Cuvelier:
On Thu, 6 Feb 2025 at 06:37, Peter Bieringer <p...@bieringer.de <mailto:p...@bieringer.de>> wrote:

    Hi,

      > Is your document hosted at
    https://github.com/pbiering/ipv6calc/tree/4.3.0/doc <https://
    github.com/pbiering/ipv6calc/tree/4.3.0/doc>?

    Yes, here already the one edited with LyX 2.4 and

      > (I bet the XSLT file you mention is the one in this repo?)

    Yes, this is used.


Thanks for confirming!

When trying with LyX 2.5 (current development version), I see that your ERTs are generated as I expected: they are transformed into comments. That's probably not what you expected, based on the previous behaviour.I just pushed 554eb63d onto master to solve the issue for your document and similar ones. Here is the preamble of your document with the latest commit:

<?xml version="1.0" encoding="UTF-8"?>
<!-- This DocBook file was created by LyX 2.5.0~devel
   See https://www.lyx.org/ <https://www.lyx.org/> for more information -->
<article xml:lang="en-US" xmlns="http://docbook.org/ns/docbook <http:// docbook.org/ns/docbook>" xmlns:xlink="http://www.w3.org/1999/xlink <http://www.w3.org/1999/xlink>" xmlns:m="http://www.w3.org/1998/Math/ MathML <http://www.w3.org/1998/Math/MathML>" xmlns:xi="http:// www.w3.org/2001/XInclude <http://www.w3.org/2001/XInclude>" version="5.2">
<title>The ipv6calc Homepage</title>
<address role='right-address'>pb at bieringer dot de</address>
<author><firstname>Peter</firstname><surname>Bieringer</ surname><affiliation><address>pb at bieringer dot de</address></ affiliation></author><revhistory> <revision> <revnumber>12.0.0</ revnumber> <date>2025-01-28</date> <authorinitials>PB</authorinitials></ revision></revhistory> <section>
<title>General</title>
<para>ipv6calc is a small utility written in programming language C to manipulate…

I think this patch is a candidate for the next 2.4 release.
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to