Skip to content

[CLOSED] Port missing piece of the indent-wrap hack from Codemirror. Fixes #11963 #10316

@core-ai-bot

Description

@core-ai-bot

Issue by petetnt
Tuesday Dec 01, 2015 at 07:48 GMT
Originally opened as adobe/brackets#11964


In #11909 we added a lineRender hack from https://codemirror.net/demo/indentwrap.html. This hack alone works fine for files using spaces as whitespace. However, the PR was missing this additional hack from the pages stylesheet:

      .CodeMirror pre > * { text-indent: 0px; }

This PR adds that, thus fixing #11963

@abose@stowball@rroshan1

edit: Steps to repro:

  1. Create new file foo.html
  2. Set indentation to Tab size: 4 from Brackets
  3. Write <h1>Foo</h1>
  4. Try to indent it with by pressing tab
    -> Text doesn't move at all

After PR:

  1. Create new file foo.html
  2. Set indentation to Tab size: 4 from Brackets
  3. Write <h1>Foo</h1>
  4. Try to indent it with by pressing tab
    -> Tabs work as indented and the indent-wrap hack still works too

petetnt included the following code: https://github.com/adobe/brackets/pull/11964/commits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions