Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


tips:textshortening

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
tips:textshortening [2015/01/24 05:22] – created rahul_pawatips:textshortening [2015/01/24 05:23] rahul_pawa
Line 9: Line 9:
 Show ellipses after shortened event text Show ellipses after shortened event text
  
- string.format('%-.18s%s',string.sub('{c1t}', 1, 15), string.len('{c1t}')>18 and '...' or string.sub('{c1t}',16,18))+   string.format('%-.18s%s',string.sub('{c1t}', 1, 15), string.len('{c1t}')>18 and '...' or string.sub('{c1t}',16,18))
  
 Show event time with shortened event text and ellipses when needed Show event time with shortened event text and ellipses when needed
  
-string.format('%s %-.18s%s', '{c1b}', string.sub('{c1t}', 1, 15), string.len('{c1t}')>18 and '...' or string.sub('{c1t}',16,18))+   string.format('%s %-.18s%s', '{c1b}', string.sub('{c1t}', 1, 15), string.len('{c1t}')>18 and '...' or string.sub('{c1t}',16,18))
tips/textshortening.txt · Last modified: 2015/01/24 05:36 by rahul_pawa