Переглянути джерело

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 4 місяців тому
батько
коміт
b79e3ac830
1 змінених файлів з 5 додано та 1 видалено
  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);
     }