How to get correct indentation after entering a nested list? I am writing a code review and I could not figure this out by googling. Here is an example of the three formatting styles I tried to use (but none of them works as I would like):
Case 1
The task is to align the last line (see below) "In the first line you use camelCase..." with the last line above the numbered list. In my first attempt, I added a new line (empty line) after the second numbered list item, and then indented by 4 spaces:
Variable name casing: See wikipedia article on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:
- Line 14:
my $testType
- Line 18:
my $right_frame
In the first line you use camelCase, whereas in the second you use snake_case.
- Line 14:
As you can see, this gives the correct indentation but it introduces a blank line above the first numbered item.
Case 2
In this case I do not add the blank line after the second numbered list item ( but still indent by 4 spaces ):
- Variable name casing: See wikipedia article on "Snake Case".
In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:
- Line 14:
my $testType
- Line 18:
my $right_frame
In the first line you use camelCase, whereas in the second you use snake_case.
- Line 14:
In this case the line is considered as part of the last list item
Case 3
In this case, I try to add two blank spaces (invisible) at the end of the second list item:
- Variable name casing: See wikipedia article on "Snake Case".
In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:
- Line 14:
my $testType
- Line 18:
my $right_frame
In the first line you use camelCase, whereas in the second you use snake_case.
- Line 14:
In this case the line is considered part of the second item, and hence not correctly indented.
How to achieve the correct indentation?