[Koha-bugs] [Bug 23488] Line wrapping doesn't always respect word order in Patron card creator

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 8 17:30:13 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23488

Gabriel DeCarufel <gabriel.decarufel at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #92411|0                           |1
        is obsolete|                            |

--- Comment #2 from Gabriel DeCarufel <gabriel.decarufel at inlibro.com> ---
Created attachment 97030
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97030&action=edit
Bug 23488: Line wrapping doesn't always respect word order in Patron card
creator

When wrapping long lines of text, the line is divided by removing each
word from the end of the line and putting it in a new one until the line
is the right width. When the word to be removed appears multiple time
in the line, it is not the last occurrence that is removed.

This patch changes the regular expression used to remove the part of
the text that is wrapped to a new line, making sure it removes it at
the end of the text.

Signed-off-by: Gabriel DeCarufel <gabriel at inlibro.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list