[Bps-public-commit] App-Changeloggr branch, master, updated. 5af4f8adcd845bc8372bfc4b0be8265a21126df2

sartak at bestpractical.com sartak at bestpractical.com
Tue May 19 11:32:40 EDT 2009


The branch, master has been updated
       via  5af4f8adcd845bc8372bfc4b0be8265a21126df2 (commit)
      from  c213f9de1aa7af22e5f44687f7637941922df7ff (commit)

Summary of changes:
 lib/App/Changeloggr/View.pm     |    1 +
 share/web/static/css/change.css |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 5af4f8adcd845bc8372bfc4b0be8265a21126df2
Author: Shawn M Moore <sartak at gmail.com>
Date:   Tue May 19 11:32:22 2009 -0400

    Wrap the lines of long commit messages

diff --git a/lib/App/Changeloggr/View.pm b/lib/App/Changeloggr/View.pm
index 1d1857d..6c565d9 100644
--- a/lib/App/Changeloggr/View.pm
+++ b/lib/App/Changeloggr/View.pm
@@ -93,6 +93,7 @@ sub show_change {
         p {
             { class is "change_message" };
             my $message = Jifty->web->escape($change->message);
+            $message =~ s{\n}{<br />}g;
             my $links = $change->changelog->commit_links;
             $message = $_->linkify($message) while $_ = $links->next;
             outs_raw( $message );
diff --git a/share/web/static/css/change.css b/share/web/static/css/change.css
index dcd78c7..f66ac1f 100644
--- a/share/web/static/css/change.css
+++ b/share/web/static/css/change.css
@@ -24,7 +24,6 @@ dl.keybindings dd {
 }
 
 .change_message {
-  white-space: pre;
   font-family: monospace;
 }
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list