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 39fe16a7f3569d4ba2c4a07e3e750a279ce016ac..56010ea9e62ea53c5c8824010ec5cd48eefb1ae1 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 c7bacb2489f144f2382caef4ef591368990c2ee2..589e83a841fee0bf9182713e3dc963248236bf6e 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