[ 
https://issues.apache.org/jira/browse/WHIMSY-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360080#comment-16360080
 ] 

ASF GitHub Bot commented on WHIMSY-68:
--------------------------------------

rubys closed pull request #16: WHIMSY-68 Only reflow lines of 78 chars or 
longer.
URL: https://github.com/apache/whimsy/pull/16
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.gitignore b/.gitignore
index 020e9425..59966c84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@ pkg
 .project
 Gemfile.lock
 work
+*.iml
+.idea
\ No newline at end of file
diff --git a/www/board/agenda/views/utils.js.rb 
b/www/board/agenda/views/utils.js.rb
index 179286a8..d060e37a 100644
--- a/www/board/agenda/views/utils.js.rb
+++ b/www/board/agenda/views/utils.js.rb
@@ -158,7 +158,9 @@ def self.text(text, indent='')
     for i in 0...lines.length
       indent = lines[i].match(/( *)(.?.?)(.*)/m)
 
-      if (indent[1] == '' and indent[2] != '* ') or indent[3] == ''
+      if lines[i].length <= 78
+        # do nothing, doesn't require reflow
+      elsif (indent[1] == '' and indent[2] != '* ') or indent[3] == ''
         # not indented (or short) -> split
         lines[i] = lines[i].
           gsub(/(.{1,#{len}})( +|$\n?)|(.{1,#{len}})/, "$1$3\n").


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Reflowing a report renders different output than the auto-reflow feature
> ------------------------------------------------------------------------
>
>                 Key: WHIMSY-68
>                 URL: https://issues.apache.org/jira/browse/WHIMSY-68
>             Project: Whimsy
>          Issue Type: Bug
>          Components: BoardAgenda
>            Reporter: John D. Ament
>            Priority: Major
>
> Take a look at current incu report for an example (being lazy to fix this)
> The reflow output is just an 80 char wrap.  This is clean.  When I reflow the 
> prefix section using the button, it concatenates those lines together.
> So I'm thinking.. add a "reflow simple" button?  Basically I don't want to 
> squash the TOCs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to