diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-09-21 21:27:36 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-09-21 21:27:36 +1000 |
| commit | 2cf6915541f61840aaab3a3cd6f5519172553e96 (patch) | |
| tree | 91a73019ddb8482d90cf79e3f5cdf2c1f1a8c789 /protocols | |
| parent | 579598e919a3e8d7d1f3b073512c54639bf66ef1 (diff) | |
Fix pango escaping and refactor escape_markup_text
Fixes #2674.
The cause of the issue was in get_pango_layout. When we call
pango_parse_markup, `text` is the escaped string, and the unescaped
string is then computed and written to `buf`. We were then passing the
unescaped string to pango_layout_set_markup, but this function needs the
escaped string. `buf` is not needed and has been removed.
The other part of this PR refactors escape_markup_text to remove the
dest_length argument and removes the -1 return value on error. It now
assumes that you've allocated dest to the correct length.
Diffstat (limited to 'protocols')
0 files changed, 0 insertions, 0 deletions
