Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show only a part of some sed script #15

Open
rpolasek opened this issue May 5, 2020 · 1 comment
Open

show only a part of some sed script #15

rpolasek opened this issue May 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rpolasek
Copy link

rpolasek commented May 5, 2020

for example:

$ cat kniha.sed
/^[1-9][1-9]*\.[^1-9]/a\
===========\
 
/^[1-9][1-9]*\.*[1-9]/a\
-----------------
$ cat kniha.txt
1. Kapitola
Pomoci teto kapitoly je ukazano,
jak funguji funkce 1, i, c, d a m.
1.1 Podkapitola 1
Nadpisy jsou rozpoznany podle
cisel na zacatku radku.
2. Konec
Doufejme, ze tyto priklady
zdurazni funkcnost funkci
a, i, c, d a n.

and now try to execute: desed kniha.sed kniha.txt and only the 1st part of the sed script is shown

@SoptikHa2 SoptikHa2 self-assigned this May 5, 2020
@SoptikHa2 SoptikHa2 added the bug Something isn't working label May 5, 2020
@SoptikHa2
Copy link
Owner

Thank you for this report! While your case is fixed by 5161e31, this issue goes deeper. It looks like I don't handle sed commands with newlines very well. I'll rewrite the whole parser, which should finally fix #3 as well.

I'll publish new version when I rewrite the parser. It should take few days.

@SoptikHa2 SoptikHa2 linked a pull request Jul 27, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants