Explorar o código

examples: Let the browser handle README.txt word wrapping.

Now it's just inserts BR tags (not P tags atm) to separate paragraphs.
Ryan C. Gordon hai 8 meses
pai
achega
b79e3ac830
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      build-scripts/build-web-examples.pl

+ 5 - 1
build-scripts/build-web-examples.pl

@@ -172,7 +172,11 @@ sub handle_example_dir {
             chomp;
             s/\A\s+//;
             s/\s+\Z//;
-            $description .= "$_<br/>";
+            if ($_ eq '') {
+                $description .= "\n<br/>\n<br/>\n";
+            } else {
+                $description .= "$_ ";
+            }
         }
         close($readmetxth);
     }