Opened 16 years ago

Last modified 16 years ago

#2433 new enhancement

Allow label wrap character to be specified in UTF-8

Reported by: project10 Owned by: sdlime
Priority: normal Milestone: FUTURE
Component: MapServer C Library Version: svn-trunk (development)
Severity: minor Keywords: label wrap utf8
Cc: tbonfort

Description

I need to be able to wrap on the carriage return character, but found that the following:

  WRAP '
'

was not working in the LABEL object. Instead, it was trying to wrap on '&'.

Attached is a patch that modifies mapfile.c to allow the WRAP character to be specified in this manner.

Attachments (1)

2433-legend-wrap-utf8.patch (948 bytes ) - added by project10 16 years ago.

Download all attachments as: .zip

Change History (2)

by project10, 16 years ago

Attachment: 2433-legend-wrap-utf8.patch added

comment:1 by tbonfort, 16 years ago

Cc: tbonfort added

I don't think that's the correct way of treating this, as label->wrap is a char : your patch potentially breaks multibyte utf8 chars.

the text rendering should already wrap by default on CR characters. Is this not the case for you?

Note: See TracTickets for help on using tickets.