I ran into a strange problem today. My script made some modifications on html content loaded from the web with regexpreplace but further on these modifications seemed to never have been made.
I tracked the problem down to a call of JoinUntil which seems to ignore earlier modifications that have been applied to the current line. See the debug log below how the buffer changes and suddenly, after the JoinUntil invocation, is restored to the initial state. I guess this is a bug.
As a workaround it should be possible in most situations to execute joinUntil first and apply the modifications afterwards.
------------------------------------------------------------
Script-Line : 176
Command : findlinenocase
Parameter 1 : ><th<
Parameter 2 : >1<
Parameter 3 : >1<
Output : >Die Lebenspraktikanten<
Line and position:
<th colspan='2'> Die Lebenspraktikanten 3:
Kleine feste Orte
^
------------------------------------------------------------
Script-Line : 177
Command : regexpreplace
Parameter 1 : >(?<=<th colspan=.2.>).+(\d+)(?=:\s+
\s+)<
Parameter 2 : >(Folge \1)<
Output : >Die Lebenspraktikanten<
Line and position:
<th colspan='2'>(Folge 3):
Kleine feste Orte
^
------------------------------------------------------------
Script-Line : 181
Command : outputto
Parameter 1 : >TITLE<
Output : ><
Line and position:
<th colspan='2'>(Folge 3):
Kleine feste Orte
^
------------------------------------------------------------
Script-Line : 182
Command : joinuntil
Parameter 1 : ></th><
Output : ><
Line and position:
<th colspan='2'> Die Lebenspraktikanten 3:
Kleine feste Orte
^
------------------------------------------------------------