]> git.plutz.net Git - shellwiki/blobdiff - md_macros.awk
css: clear gallery from floating elements
[shellwiki] / md_macros.awk
index 4b85a0e5dae84a282e48c7e6f14633fef8bbc8a4..88e662f7d913f3058120c405a065ea507537d77c 100755 (executable)
@@ -48,8 +48,10 @@ function macro(call, LOCAL, line, args) {
   for (n = 1; n in args; n++) call = call sh_escape(args[n]) " ";
 
   if (args[1] in MACROS) {
+    oldRS=RS; oldORS=ORS;
     RS=""; ORS=""; line="";
     "printf '%s' " sh_escape(file) " | " sh_escape(ENVIRON["MD_MACROS"]) "/" call | getline line;
+    RS=oldRS; ORS=oldORS;
     return line;
   } else {
     return HTML("<<" call ">>");