<head>
<style>
    body { font-family: 'Ahem'; color:green }
    .hang { hanging-punctuation: allow-end; margin:1em; width:5em; border:2px solid black }
</style>
</head>
<body>
<div style="float:left" class="hang">12 34,</div>
<div style="clear:both">
<div class="hang">12 34, 1234,</div>
<div class="hang" style="text-align:justify;">12 34,</div>
<div class="hang">12 34,<br>12345</div>
<div class="hang">12 34,56 1234<br>12345</div>
<div class="hang">12 <span style="white-space:nowrap">34,<div style="display:inline-block">56</div></span> 1234<br>12345</div>


