<p dir="ltr">Hi burghardt. <br>
I am using win7 and qgis 14.2 and cant replicate your issue. Wordwrap works fine for me.<br>
This is not an elegant solution but may be what you need;</p>
<p dir="ltr">case when length("name") <15 then "name" else left("name",15)   ||  '\n'  || right("name",length("name")-15) end</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Damien,<br>
thanks for the feedback.<br>
Unfortunately, your suggestion does not work. I have already tried many variants, but I had no success.<br>
<br>
Burghardt<br>
<br>
Von: damien stephens [mailto:<a href="mailto:damien.stephens@gmail.com">damien.stephens@gmail.com</a>]<br>
Gesendet: Mittwoch, 8. Juni 2016 12:56<br>
An: Scholle, Burghardt (15-3 GIS); <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
Betreff: Re: [Qgis-user] Label Formatting - Wrap on character with "wordwrap"<br>
<br>
Try something along the lines of<br>
Case when length ("name") < 15 then "name" else wordwrap ("name",15) end<br>
<br>
I havent got my computer with me, but might be a work around.<br>
<br>
On Mon, 6 Jun 2016, 6:40 PM <<a href="mailto:Burghardt.Scholle@stadt.wolfsburg.de">Burghardt.Scholle@stadt.wolfsburg.de</a>> wrote:<br>
Hi,<br>
<br>
I created a bug report for this issue: <a href="http://hub.qgis.org/issues/14963" rel="noreferrer" target="_blank">http://hub.qgis.org/issues/14963</a><br>
<br>
Regards<br>
Burghardt<br>
<br>
> -----Ursprüngliche Nachricht-----<br>
> Von: Qgis-user [mailto:<a href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a>] Im Auftrag von<br>
> <a href="mailto:Burghardt.Scholle@stadt.wolfsburg.de">Burghardt.Scholle@stadt.wolfsburg.de</a><br>
> Gesendet: Mittwoch, 18. Mai 2016 13:10<br>
> An: <a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><br>
> Betreff: [Qgis-user] Label Formatting - Wrap on character with "wordwrap"<br>
><br>
> Hi all,<br>
><br>
> my System: Ubuntu 14.04, QGIS 2.8.7 / 2.14.2<br>
><br>
> I want label a layer with long attribute values. The label should wrap after a<br>
> number of characters. For this I use the function "wordwarp" in the<br>
> expression string builder (e.g. "wordwrap("name", 15)"). In the output<br>
> preview the wordwrap is displayed correctly. But in the map all the words<br>
> with less than (e.g.) 15 characters will be hidden and the wordwrap will not<br>
> be displayed.<br>
> Am I doing something wrong? Can anyone give me a hint?<br>
><br>
> Best regards<br>
> Burghardt<br>
><br>
> ***************<br>
><br>
> Stadt Wolfsburg<br>
> Geschäftsbereich IT - 15-3 GIS<br>
> Rathaus E, Zi. E403, Porschestraße 47A, D-38440 Wolfsburg Tel +49 5361 28-<br>
> 2531 Fax +49 5361 28-1765 mailto:<a href="mailto:burghardt.scholle@stadt.wolfsburg.de">burghardt.scholle@stadt.wolfsburg.de</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div>