bkad / prat

group chat with markdown served over websockets
11 stars 6 forks source link

Message line spacing issue #71

Open cespare opened 11 years ago

cespare commented 11 years ago

screenshot

Caused by the following special-casing code in style.styl (currently line 352-354):

  &:last-child
    p, ol, div, ul
      margin-bottom: 0
cespare commented 11 years ago

Actually, this appears to only be an issue with the bot. I can't figure out how to create the same structure by typing myself. The issue is that there are messages with many <p> elements inside them. For instance, the screenshot above has two messages.

I can't figure out how this is caused -- maybe by sending multiple messages very rapidly? Even if I put two newlines between the lines in client, the resulting message only has on <p> element.