commit d4b99f07cbfb850a923d2897203cd0215c68ba7d
parent a9eee7b654856a880237b72decb2aee66d6670fa
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 9 Mar 2016 01:07:01 +0100
forceend
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/shorthand.pl b/shorthand.pl
@@ -171,6 +171,11 @@ while (<>) {
$escaping = 1;
next;
}
+ if ($l =~ /^FORCEEND/) {
+ print "\\end{frame}\n\n" if ($in_frame == 1);
+ $in_frame = 0;
+ next;
+ }
if ($l =~ /^(!f?) (.*)/) {
print "\\end{frame}\n\n" if ($in_frame == 1);
print "\\subsection\{\}\n" if ($subsecneeded == 1);