浏览代码

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 7 月之前
父节点
当前提交
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);
     }