Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. when you hit enter, it creates a <br />
  2. if you're inside a link, it closes the link first
  3.  
  4. when you hit enter
  5. if the cursor is immediately preceded by a <br /> then a new p is created
  6. if you were inside some formatting then that is continued in the new p
  7.  
  8. so if you had:
  9.  
  10. <h2><strong>hi there[[HIT ENTER TWICE HERE]]</strong></h2>
  11.  
  12. you would end up with:
  13.  
  14. <h2><strong>hi there</strong></h2>
  15. <p><strong>the cursor is here now</strong></p>
  16.  
  17. but if you only hit enter once you would get:
  18.  
  19. <h2><strong>hi there<br />and keep typing</strong></h2>
  20.  
  21. and with a link:
  22.  
  23. <p><a href="ohai.html">here is my link[[HIT ENTER HERE ONCE]]</a></p>
  24.  
  25. then you would get:
  26.  
  27. <p><a href="ohai.html">here is my link</a><br />and type here</p>
  28.  
  29. but if you hit enter twice:
  30.  
  31. <p>a href="ohai.html">here is my link</a></p>
  32. <p>no formatting here yet</p>
Add Comment
Please, Sign In to add comment