I believe this is the first time I run into this problem in many years:
I need to import and export the content of HTML <pre> tags with an attribute data-type="programlisting" so that each line will be parsed as one segment.
Source looks like:
<pre data-code-language="java" data-type="programlisting">
public class Song {
String name;
String authorName;
String albumName;
}</pre>
So far, during import, everything within the pre tag is parsed as one segment, which results in everything being output on one line when the translation is exported (please ignore that target and source content is identical here, this example does not contain any comments ...):
<pre data-code-language="java" data-type="programlisting">public class Song {String name; String authorName; String albumName; }</pre>
I tried to add a condition to a copy of the pre tag rule (which I prioritized and put before the existing pre tag rule) but it looks like there is no option to define the way the segment parsing is done.
Do I overlook something? Or is there any other way to deal with that problem? (My Xmas wish! :-) )
Thanks for any insights!
