https://issues.qgis.org/https://issues.qgis.org/favicon.ico2011-02-10T17:49:43ZQGIS Issue TrackingQGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=237072011-02-10T17:49:43ZAlister Hood
<ul></ul><p>I guess it would also be good if they could wrap to avoid collisions with features or other labels, instead of wrapping at a specified length :)</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=237082011-02-10T19:45:20ZAlister Hood
<ul></ul><p>There is already a wrapping option.<br />But I have never figured out how to actually get layers to wrap. How is it supposed to work?</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=237092011-02-10T20:03:06ZAlister Hood
<ul></ul><blockquote>
<p>There is already a wrapping option. But I have never figured out how to actually get layers to wrap. How is it supposed to work?</p>
</blockquote>
<p>Oh, I remember now. The User Guide says multiline labels work with a true line return. I'm not sure how you're supposed to enter a true line return though (on windows).</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=237102011-02-10T21:16:00ZAlister Hood
<ul></ul><p>Aha, here's the answer from the mailing list:</p>
<blockquote>
<p>You have to enter a "real" newline. If you want to enter multiline labels in <br />QGIS you need to assign a <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/TextEdit">TextEdit</a> instead of <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/LineEdit">LineEdit</a> as edit widget in the <br />vector layer properties' attributes tab.</p>
</blockquote>
<p>Of course this feature request is still valid, as it is about automatic wrapping, not wrapping with a manual line break.</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=263792011-11-12T05:13:55ZMichael Douchin
<ul></ul><p>I think this request if no longer needed since the implementation of expression based labelling : <a class="external" href="http://woostuff.wordpress.com/2011/10/27/expression-based-labeling/">http://woostuff.wordpress.com/2011/10/27/expression-based-labeling/</a></p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=263802011-11-12T05:18:58ZNathan Woodrow
<ul><li><strong>Pull Request or Patch supplied</strong> set to <i>No</i></li><li><strong>Assignee</strong> deleted (<del><i>nobody -</i></del>)</li></ul><p>I wouldn't close it just yet as the expression labeling thing doesn't really expose a function to wrap strings. It's on the todo list and shouldn't be to hard to add.</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=271992011-12-16T12:49:55ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Target version</strong> changed from <i>Version 1.7.0</i> to <i>Version 1.7.4</i></li></ul> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283452012-01-05T22:47:43ZAnonymous
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/f57892c73d8a3b4a3abe4b8659369720e9cc1329" title="[FEATURE] Add label wrapping on character. Semi Fixes #3284">f57892c73d8a3b4a3abe4b8659369720e9cc1329</a>.</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283462012-01-05T22:50:12ZNathan Woodrow
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Category</strong> changed from <i>Map Canvas</i> to <i>Labelling</i></li><li><strong>Assignee</strong> set to <i>Nathan Woodrow</i></li></ul><p>I have added the ability to wrap labels based on a character, check on the advanced tab on the label dialog. Max length isn't done yet but it shouldn't be too hard to add.</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283472012-01-05T23:22:44ZMichael Douchin
<ul></ul><p>Nathan Woodrow wrote:</p>
<blockquote>
<p>I have added the ability to wrap labels based on a character, check on the advanced tab on the label dialog. Max length isn't done yet but it shouldn't be too hard to add.</p>
</blockquote>
<p>Thanks !</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283482012-01-06T01:51:40ZNathan Woodrow
<ul></ul><p>How would you like max length handled. I was just thinking of copying how MapServer does it <a class="external" href="http://mapserver.org/mapfile/label.html#maxlength">http://mapserver.org/mapfile/label.html#maxlength</a></p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283492012-01-06T03:49:38ZMichael Douchin
<ul></ul><p>I think it makes sense. This way users won't have problem to use it if they come from mapserver.<br />Plus I think this is the easiest yet effective way to handle this issue</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283752012-01-08T14:05:44ZAlister Hood
<ul></ul><p>Nathan Woodrow wrote:</p>
<blockquote>
<p>How would you like max length handled. I was just thinking of copying how MapServer does it <a class="external" href="http://mapserver.org/mapfile/label.html#maxlength">http://mapserver.org/mapfile/label.html#maxlength</a></p>
</blockquote>
<p>Just to clarify: are you proposing actually doing it in the expression builder?</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283762012-01-08T14:15:49ZAlister Hood
<ul></ul><p>While I can see the benefits of doing it the same way as other software, the mapserver way isn't particularly intuitive. Especially things like this:</p>
<p>If maxlength > 0 and wrap = ‘char’, insert a newline at the FIRST wrap character AFTER maxlength characters</p>
<p>I would think that users would expect it to wrap at the LAST wrap character BEFORE maxlength characters (assuming there is one).</p>
<p>And I don't see why they have two ways of achieving "hard wrap (always break at exactly MAXLENGTH characters)". Perhaps when there is "no wrap", they mean to <em>truncate</em> at MAXLENGTH characters, not to "hard wrap".</p> QGIS Application - Feature request #3284: Wrapping long labelshttps://issues.qgis.org/issues/3284?journal_id=283782012-01-08T16:12:59ZNathan Woodrow
<ul></ul><p>Alister Hood wrote:</p>
<blockquote>
<p>Just to clarify: are you proposing actually doing it in the expression builder?</p>
</blockquote>
<p>No. The plan is to add another control to the label dialog for wrapping properties e.g. max length, wrap character etc</p>
<p>This is a general labeling thing not really just for expressions.</p>