Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from roughike/trim-margin
v1.1.0
- Loading branch information
Showing
12 changed files
with
241 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1 @@ | ||
# Defines a default set of lint rules enforced for | ||
# projects at Google. For details and rationale, | ||
# see https://github.com/dart-lang/pedantic#enabled-lints. | ||
include: package:pedantic/analysis_options.yaml | ||
|
||
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints. | ||
# Uncomment to specify additional rules. | ||
# linter: | ||
# rules: | ||
# - camel_case_types | ||
|
||
analyzer: | ||
# exclude: | ||
# - path/to/excluded/files/** | ||
include: package:lint/analysis_options_package.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
name: indent | ||
description: Change indentation in multiline Dart strings while preserving the existing relative indentation. | ||
version: 1.0.0+2 | ||
version: 1.1.0 | ||
homepage: https://github.com/roughike/indent | ||
|
||
environment: | ||
sdk: '>=2.7.0 <3.0.0' | ||
|
||
dev_dependencies: | ||
expected_output: ^1.2.2 | ||
lint: ^1.0.0 | ||
pedantic: ^1.8.0 | ||
test: ^1.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
>>> | ||
#!Tell me and I forget. | ||
#!Teach me and I remember. | ||
#!Involve me and I learn. | ||
#!(Benjamin Franklin) | ||
<<< | ||
Tell me and I forget. | ||
Teach me and I remember. | ||
Involve me and I learn. | ||
(Benjamin Franklin) | ||
>>> | ||
#!Tell me and I forget. | ||
#!Teach me and I remember. | ||
#!Involve me and I learn. | ||
#!(Benjamin Franklin) | ||
<<< | ||
Tell me and I forget. | ||
Teach me and I remember. | ||
Involve me and I learn. | ||
(Benjamin Franklin) | ||
>>> preserves leading whitespace for lines not containing marginPrefix | ||
#!Tell me and I forget. | ||
#!Teach me and I remember. | ||
Involve me and I learn. | ||
#!(Benjamin Franklin) | ||
<<< | ||
Tell me and I forget. | ||
Teach me and I remember. | ||
Involve me and I learn. | ||
(Benjamin Franklin) | ||
>>> trims first and last lines if they are blank | ||
|
||
#!Tell me and I forget. | ||
#!Teach me and I remember. | ||
#!Involve me and I learn. | ||
#!(Benjamin Franklin) | ||
|
||
<<< | ||
Tell me and I forget. | ||
Teach me and I remember. | ||
Involve me and I learn. | ||
(Benjamin Franklin) | ||
>>> trims marginPrefix even without preceding whitespace | ||
|
||
#!Tell me and I forget. | ||
#!Teach me and I remember. | ||
#!Involve me and I learn. | ||
#!(Benjamin Franklin) | ||
|
||
<<< | ||
Tell me and I forget. | ||
Teach me and I remember. | ||
Involve me and I learn. | ||
(Benjamin Franklin) |
Oops, something went wrong.