From 5c4e61cdad813be3cadfbea83d0cca6eb64482df Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 21 Jun 2009 18:39:17 +0000 Subject: [PATCH] hack to increase whitespace in generated entries --- bin/createNewsEntry | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/createNewsEntry b/bin/createNewsEntry index 03678793a..d971a5d3d 100755 --- a/bin/createNewsEntry +++ b/bin/createNewsEntry @@ -134,14 +134,14 @@ ce($dom, "link", null, array("href" => $via, "rel" => "via", "type" => "text/ht $content = ce($dom, "content", null, array(), $item); fwrite(STDOUT, "And at last; paste/write your news item here.\nTo end it, hit .\n"); -$news = ""; +$news = "\n"; while(($line = rtrim(fgets(STDIN))) != ".") { - $news .= $line; + $news .= " $line\n"; } $tdoc = new DOMDocument("1.0", "utf-8"); $tdoc->formatOutput = true; -if ($tdoc->loadXML('
'.$news.'
')) { +if ($tdoc->loadXML('
'.$news.'
')) { $content->setAttribute("type", "xhtml"); $div = $content->appendChild($dom->createElement("div")); $div->setAttribute("xmlns", "http://www.w3.org/1999/xhtml");