## 2021 10 29.01
+ - A new flag -xlp has been added which can be set to avoid most of the
+ limitations of the -lp flag regarding side comments, blank lines, and
+ code blocks. This is off by default to avoid changing existing coding,
+ so this flag has to be set to turn this feature on. [Documentation still
+ needs to be written]. It will be included in the next release to CPAN,
+ but some details regarding how it handles very long lines may change before
+ the final release to CPAN. This fixes issues git #64 and git #74.
+
- The coding for the -lp flag has been rewritten to avoid some problems
and limitations. The new coding allows the -lp indentation style to
mix smoothly with the standard indentation in a single file. Some problems
--- /dev/null
+# test -xlp with comments, broken sub blocks, blank line, line length limit
+$cb1 = $act_page->Checkbutton(
+ -text => M "Verwenden",
+ -variable => \$qualitaet_s_optimierung,
+ -command => sub {
+ change_state_all( $act_page1, $qualitaet_s_optimierung, { $cb1 => 1 } )
+ ; # sc
+ },
+)->grid(
+
+ # block comment
+ -row => $gridy++,
+ -column => 2,
+ -sticky => 'e'
+);
--- /dev/null
+# test -xlp with comments, broken sub blocks, blank line, line length limit
+$cb1 = $act_page->Checkbutton(
+ -text => M "Verwenden",
+ -variable => \$qualitaet_s_optimierung,
+ -command => sub {
+ change_state_all( $act_page1,
+ $qualitaet_s_optimierung,
+ { $cb1 => 1 } ); # sc
+ },
+)->grid(
+
+ # block comment
+ -row => $gridy++,
+ -column => 2,
+ -sticky => 'e'
+);
../snippets25.t lp2.def
../snippets25.t lp2.lp
../snippets25.t braces.braces8
+../snippets25.t rt140025.def
+../snippets25.t rt140025.rt140025
../snippets3.t ce_wn1.ce_wn
../snippets3.t ce_wn1.def
../snippets3.t colin.colin
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets25.t rt140025.def
-../snippets25.t rt140025.rt140025
+../snippets25.t xlp1.def
+../snippets25.t xlp1.xlp1
--- /dev/null
+# test -xlp with comments, broken sub blocks, blank line, line length limit
+$cb1 = $act_page->Checkbutton(
+ -text => M "Verwenden",
+ -variable => \$qualitaet_s_optimierung,
+ -command => sub {
+ change_state_all( $act_page1, $qualitaet_s_optimierung, { $cb1 => 1 } )
+ ; # sc
+ },
+)->grid(
+
+ # block comment
+ -row => $gridy++,
+ -column => 2,
+ -sticky => 'e'
+);
#7 braces.braces8
#8 rt140025.def
#9 rt140025.rt140025
+#10 xlp1.def
+#11 xlp1.xlp1
# To locate test #13 you can search for its name or the string '#13'
'novalign2' => "-nvsc -nvbc -msc=2",
'novalign3' => "-nvc",
'rt140025' => "-lp -xci -ci=4 -ce",
+ 'xlp1' => "-xlp",
};
############################
}
}
};
+----------
+
+ 'xlp1' => <<'----------',
+# test -xlp with comments, broken sub blocks, blank line, line length limit
+$cb1 = $act_page->Checkbutton(
+ -text => M "Verwenden",
+ -variable => \$qualitaet_s_optimierung,
+ -command => sub {
+ change_state_all( $act_page1, $qualitaet_s_optimierung, { $cb1 => 1 } )
+ ; # sc
+ },
+)->grid(
+
+ # block comment
+ -row => $gridy++,
+ -column => 2,
+ -sticky => 'e'
+);
----------
};
};
#9...........
},
+
+ 'xlp1.def' => {
+ source => "xlp1",
+ params => "def",
+ expect => <<'#10...........',
+# test -xlp with comments, broken sub blocks, blank line, line length limit
+$cb1 = $act_page->Checkbutton(
+ -text => M "Verwenden",
+ -variable => \$qualitaet_s_optimierung,
+ -command => sub {
+ change_state_all( $act_page1, $qualitaet_s_optimierung, { $cb1 => 1 } )
+ ; # sc
+ },
+)->grid(
+
+ # block comment
+ -row => $gridy++,
+ -column => 2,
+ -sticky => 'e'
+);
+#10...........
+ },
+
+ 'xlp1.xlp1' => {
+ source => "xlp1",
+ params => "xlp1",
+ expect => <<'#11...........',
+# test -xlp with comments, broken sub blocks, blank line, line length limit
+$cb1 = $act_page->Checkbutton(
+ -text => M "Verwenden",
+ -variable => \$qualitaet_s_optimierung,
+ -command => sub {
+ change_state_all( $act_page1,
+ $qualitaet_s_optimierung,
+ { $cb1 => 1 } ); # sc
+ },
+)->grid(
+
+ # block comment
+ -row => $gridy++,
+ -column => 2,
+ -sticky => 'e'
+);
+#11...........
+ },
};
my $ntests = 0 + keys %{$rtests};