modules/admin-{full,mini}: draw newlines in sysupgrade status output
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 1 Jul 2009 00:41:42 +0000 (00:41 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 1 Jul 2009 00:41:42 +0000 (00:41 +0000)
modules/admin-full/luasrc/controller/admin/system.lua
modules/admin-mini/luasrc/controller/mini/system.lua

index 39fe16a..56010ea 100644 (file)
@@ -279,7 +279,7 @@ function action_upgrade()
                                while true do
                                        local ln = fd:read("*l")
                                        if not ln then break end
-                                       luci.http.write(ln)
+                                       luci.http.write(ln .. "\n")
                                end
                                fd:close()
                        end
index c7bacb2..589e83a 100644 (file)
@@ -162,7 +162,7 @@ function action_upgrade()
                                while true do
                                        local ln = fd:read("*l")
                                        if not ln then break end
-                                       luci.http.write(ln)
+                                       luci.http.write(ln .. "\n")
                                end
                                fd:close()
                        end