1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Partial Fix Extra indents with bullets

Discussion in 'Resolved Bug Reports' started by Mr Lucky, Aug 23, 2015.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    Here is a list
    • List Item
    • List Item
    • List Item
    Now select the above and indent:

    Here is a list​
            • List Item
            • List Item
            • List Item
    Extra bullet appears!
     
  2. Amaury

    Amaury Well-Known Member

  3. Mr Lucky

    Mr Lucky Well-Known Member

    Maybe just Safari then - I'll try some other browsers:

    Chrome
              • List1
              • List2
              • List3
     
  4. Mr Lucky

    Mr Lucky Well-Known Member

    Firefox

    • List1
    • List2
    • List3
     
  5. Mr Lucky

    Mr Lucky Well-Known Member

    Firefox seems fine, I'm getting it with Safari and Chrome (Mac OSX Yosemite)
     
  6. Zynektic

    Zynektic Well-Known Member

    Actually, my other Admin when writing guides manages to produce it in Chrome and I always have to go in and fix it, I just assumed he was useless but seeing this maybe not...
     
    JulianD and Enguerran A like this.
  7. Martok

    Martok Well-Known Member

    I've tried this several times on Chrome for both the Mac and Android and can't replicate this.

    Maybe you could screen record the exact process (using something like licecap) so we can try following exactly what you are doing to see if we can replicate it?
     
  8. Mr Lucky

    Mr Lucky Well-Known Member

    Here is a list:

    List1
    List2
    List3​
     
  9. Mr Lucky

    Mr Lucky Well-Known Member

    A list:
              • Item1
              • Item2
              • Item3
     
  10. Mr Lucky

    Mr Lucky Well-Known Member


    Done:

    List Indent Safari Bug

    Video of my post #9
     
  11. Chris D

    Chris D XenForo Developer Staff Member

    I can reproduce this.
    The resulting BB code:

    [INDENT][INDENT][/INDENT][/INDENT]
    [LIST]
    [*][LIST]
    [*][LIST]
    [*]Item 1
    [*]Item 2
    [*]Item 3
    [/LIST]
    [/LIST]
    [/LIST][/code]

    The HTML display is correct, but the BB code produced is all wrong. This isn't apparent until you submit the post.

        • Item 1
        • Item 2
        • Item 3
     
    Zynektic likes this.
  12. Mr Lucky

    Mr Lucky Well-Known Member

    It kind of is for me.

    Sometimes, as you click on each indent the bullet changes from round to square, but yes, then all the extra horizontal ones appear after the post is posted.
     
  13. Chris D

    Chris D XenForo Developer Staff Member

    That's as designed, really, the bullet styles changing. The bullet styles change for each indent level (until we run out of bullet styles ;))
     
  14. Mike

    Mike XenForo Developer Staff Member

    I can really only call this a partial fix. I have made an adjustment which handles the nested lists that Chrome generates and turns them into indents like Firefox. However, there are internal browser differences beyond that. Based on the HTML5 spec, what Chrome is generating is actually invalid. It's doing <ul><ul><ul>...<li>; the spec refers only to child <li> (or <script>/<template>) tags. As such, there are situations where the BB code generates slightly different HTML (which is actually valid based on the spec).
     
    Mr Lucky likes this.

Share This Page