adamwulf/Columnizer-jQuery-Plugin — Issue #37: Usability on text splitting (suggestion)
Author: chrisgraham
Created: 2012-01-25 03:54:22+00:00
State: open

If some text is split mid-paragraph/mid-sentence, it is a nice little touch to add an "mdash" entity at the split point, to make it clear to the reader what has happened.

Columns aren't usual for websites, so pulling out this traditional typographical trick works well.

```
var partsUsed = 0;
while($parentColumn.height() < height && oText.length != 0){
...
partsUsed++;
...
}

if($parentColumn.height() >= height && latestTextNode != null){
...
partsUsed--;
}
if(oText.length){
...
if (partsUsed != 0)
{
latestTextNode = document.createTextNode(' \u2014');
$putInHere.append(latestTextNode);
}
```