[Koha-bugs] [Bug 9372] Automatic carriage return in message_queue where content_type is html

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 12 10:06:31 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9372

Chris Cormack <chris at bigballofwax.co.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14549|0                           |1
        is obsolete|                            |
  Attachment #20071|0                           |1
        is obsolete|                            |

--- Comment #14 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 21003
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21003&action=edit
Bug 9372 : Replaces carriage return with <br /> in printed html files for
overdues.

For pdf generation, html files need explicit <br /> html tags. With this patch,
carriage return are replaced by <br /> when letters are written into html
files.

Test plan :
- Ensure you've got at least one reader with overdue triggering notice
- Ensure that your notice template got html checked
- Run misc/cronjobs/overdue_notices.pl -v -n -html <dirname>
  and misc/cronjobs/printoverdues.sh <dirname>

Without patch, the content of the letter is all on one line in pdf file
With the patch, pdf file is correctly formated

- remove your reader email
- Run misc/cronjobs/overdue_notices.pl -v -html <dirname>
  and misc/cronjobs/printoverdues.sh <dirname>

Without patch, the content of pdf file is all on one line
with the patch, pdf file is correctly formated.

- restore reader email
- run misc/cronjobs/overdue_notice.pl -v -html <dirname>

Verify that the a message has been generated in message_queue table
With or without patch, the message is the same

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>

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


More information about the Koha-bugs mailing list