jesobreira / gwrite

Automatically exported from code.google.com/p/gwrite
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Pressing return after a heading creates a div not a p tag #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Click the H1 icon
2. Type something, press return
3. Type something else

What is the expected output? What do you see instead?
I expect to see the text indented but instead I see text aligned hard left. 
Looking at the source code I see that after a heading, the next element created 
is a div tag instead of a p tag. I can't find any other way to create a div 
tag, so I'm assuming this behaviour is a bug.

I think it would make sense to create a new p tag after entering a heading.

Version 0.3.0 on Ubuntu 10.04 Lucid.

Original issue reported on code.google.com by callum.m...@gmail.com on 11 Jun 2010 at 9:44

GoogleCodeExporter commented 8 years ago
Please try the fresh code in hg, 
it added a DIV style menu

Original comment by jhuangjiahua@gmail.com on 22 Jul 2010 at 2:29

GoogleCodeExporter commented 8 years ago
Err,
it still created a <div> instead of <p> after press return.

Let me see how to change it.

Original comment by jhuangjiahua@gmail.com on 23 Jul 2010 at 1:01