[jira] [Commented] (FOP-2514) [PATCH] Empty hyphenation-character leads to "String index out of range: 0"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (FOP-2514) [PATCH] Empty hyphenation-character leads to "String index out of range: 0"

Andreas Joseph Krogh (Jira)

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

Chris Bowditch commented on FOP-2514:
-------------------------------------

On second thought, I had a go at inheriting CharacterProperty from OptionalCharacterProperty. It only saves 2 member variable declarations and the definition of getObject() and causes a number of problems. So I'm happy to accept the patch as-is

> [PATCH] Empty hyphenation-character leads to "String index out of range: 0"
> ---------------------------------------------------------------------------
>
>                 Key: FOP-2514
>                 URL: https://issues.apache.org/jira/browse/FOP-2514
>             Project: FOP
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Bj√∂rn Kautler
>            Assignee: Chris Bowditch
>            Priority: Major
>         Attachments: hyphen.fo, issue-2514.patch
>
>
> If you set hyphenation-character to the empty value, then you get the error message "String index out of range: 0".
> If there is no hyphenation-character set, there should simply nothing be used.
> This is useful in cases where you want hyphenation but no hyphenation character like in program listings or similar



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