Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullet list and ordered list have different formatting #26

Open
Octakiseron opened this issue Aug 1, 2014 · 1 comment
Open

Bullet list and ordered list have different formatting #26

Octakiseron opened this issue Aug 1, 2014 · 1 comment

Comments

@Octakiseron
Copy link

The issue is that the bullet list has an extra newline at the start of items list. Ordered list is missing a newline at the end of list items.

Link to current code:
https://github.com/dreamwieber/AttributedMarkdown/blob/master/markdown_output.m#L237

Proposed code change:

case BULLETLIST:
            //pad(out, 2);
            padded = 0;
            indentation+=1;
            print_attr_element_list(out, elt->children, attributes, merge(current, attributes[elt->key]));
            //pad(out, 1);
            indentation-=1;
            print_attr_string(out, @"\n",current);
            padded = 0;
            break;
case ORDEREDLIST:
            //pad(out, 2);
            padded = 0;
            print_attr_element_list(out, elt->children, attributes, merge(current, attributes[elt->key]));
            //pad(out, 1);
            print_attr_string(out, @"\n",current);
            padded = 0;
            break;
@allaire
Copy link

allaire commented Jun 17, 2015

Thanks @raes that was it for me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants