question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indent when doing line breaks

See original GitHub issue

Feedback from twitter here: https://twitter.com/amuellerml/status/1060895092230291457

Actual behavior

a = 1 + \
<--- indent is here

Expected behavior

a = 1 + \
    <--- indent is here

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jakebaileycommented, Nov 12, 2018

Adding this seems to work (handling comments and ignoring all-whitespace prefixes):

{
    beforeText: /^(?!\s+\\)[^#\n]+\\\s*/,
    action: { indentAction: IndentAction.Indent }
},

continuation_fixed

Tests: https://regex101.com/r/kfNBtR/1

1reaction
cbrnrcommented, Nov 12, 2018

#481 is certainly related because it also concerns proper PEP8-style indentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How "wrong" is it for me to use both "double line breaks" and ...
The person setting the type indents the first lines of paragraphs to set them off. The reason for the uniform line spacing is...
Read more >
html - Hanging Justification / indent after line break <br>?
If a given line of verse breaks the line, it should be indented. Every line of verse gets a break, obviously, but since...
Read more >
PowerPoint: Indents and Line Spacing - GCF Global
Indents and line spacing are two important features you can use to change the way text appears on a slide. Indents can be...
Read more >
Line Break - Definition and Examples | LitCharts
The indentation, in this case, marks that the indented line is part of the previous line, and should not be considered on its...
Read more >
Indent the first line of a paragraph - Microsoft Support
On the Indents and Spacing tab, under Indentation, select First line. The First Line Indent option is highlighted in the Paragraph dialog box....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found