Update README
This commit is contained in:
11
README.md
11
README.md
@@ -1,3 +1,14 @@
|
||||
# latex-acronym-sort
|
||||
|
||||
Auto sorter for the latex acronym package
|
||||
|
||||
## Build
|
||||
Run the following command to build this project:
|
||||
```shell
|
||||
cargo build -r
|
||||
```
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
latex-acronym-sort -f <filepath>
|
||||
```
|
@@ -6,7 +6,7 @@ fn main() -> Result<(), Error> {
|
||||
let args = Args::parse();
|
||||
|
||||
let wordlist = read_to_string(&args.filepath)?;
|
||||
let mut list: Vec<&str> = wordlist.split_ascii_whitespace().collect();
|
||||
let mut list: Vec<&str> = wordlist.split("\n").collect();
|
||||
|
||||
let lowerbound = list.iter().position(|&x| x.contains("\\begin{acronym}"));
|
||||
let upperbound = list.iter().position(|&x| x.contains("\\end{acronym}"));
|
||||
|
Reference in New Issue
Block a user