* Break lines in Query replace. Help.
@ 2022-10-08 11:19 Ypo
2022-10-08 13:03 ` tomas
2022-10-09 2:44 ` Max Nikulin
0 siblings, 2 replies; 4+ messages in thread
From: Ypo @ 2022-10-08 11:19 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 269 bytes --]
I want to make a "query replace", where
" - " should be substituted by
"breakline - "
How do I insert in a query replace a breakline?
"\\ - " seems to work only for LaTeX export.
"^J - " writes down ^J literally, and doesn't work as a break line.
Best regards
[-- Attachment #2: Type: text/html, Size: 1025 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Break lines in Query replace. Help.
2022-10-08 11:19 Break lines in Query replace. Help Ypo
@ 2022-10-08 13:03 ` tomas
2022-10-09 1:26 ` Solved: " Ypo
2022-10-09 2:44 ` Max Nikulin
1 sibling, 1 reply; 4+ messages in thread
From: tomas @ 2022-10-08 13:03 UTC (permalink / raw)
To: Ypo; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
On Sat, Oct 08, 2022 at 01:19:28PM +0200, Ypo wrote:
> I want to make a "query replace", where
>
> " - " should be substituted by
>
> "breakline - "
>
>
> How do I insert in a query replace a breakline?
>
> "\\ - " seems to work only for LaTeX export.
>
> "^J - " writes down ^J literally, and doesn't work as a break line.
It's C-Q C-J (aka ^Q^J). The CTRL-Q "quotes" the next char (handy also
for other control characters -- see also 7.1 "Inserting Text" in the
fine manual).
Cheers
--
t
>
>
> Best regards
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Solved: Break lines in Query replace. Help.
2022-10-08 13:03 ` tomas
@ 2022-10-09 1:26 ` Ypo
0 siblings, 0 replies; 4+ messages in thread
From: Ypo @ 2022-10-09 1:26 UTC (permalink / raw)
To: tomas; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
Working!
Thanks, Tomas ^^
By the way, I can't see ~^J~ in my document. Is there a way to see it?
Using ~whitespace-mode~ doesn't work for that.
Best regards
El 08/10/2022 a las 15:03, tomas@tuxteam.de escribió:
> On Sat, Oct 08, 2022 at 01:19:28PM +0200, Ypo wrote:
>> I want to make a "query replace", where
>>
>> " - " should be substituted by
>>
>> "breakline -"
>>
>>
>> How do I insert in a query replace a breakline?
>>
>> "\\ - " seems to work only for LaTeX export.
>>
>> "^J - " writes down ^J literally, and doesn't work as a break line.
> It's C-Q C-J (aka ^Q^J). The CTRL-Q "quotes" the next char (handy also
> for other control characters -- see also 7.1 "Inserting Text" in the
> fine manual).
>
> Cheers
[-- Attachment #2: Type: text/html, Size: 1574 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Break lines in Query replace. Help.
2022-10-08 11:19 Break lines in Query replace. Help Ypo
2022-10-08 13:03 ` tomas
@ 2022-10-09 2:44 ` Max Nikulin
1 sibling, 0 replies; 4+ messages in thread
From: Max Nikulin @ 2022-10-09 2:44 UTC (permalink / raw)
To: Ypo, Org-mode
On 08/10/2022 18:19, Ypo wrote:
> I want to make a "query replace", where
>
> " - " should be substituted by
>
> "breakline - "
>
>
> How do I insert in a query replace a breakline?
>
> "\\ - " seems to work only for LaTeX export.
Why do you think so? It is an element of Org syntax, namely 'line-break.
It should be handled properly by e.g. HTML export.
> "^J - " writes down ^J literally, and doesn't work as a break line.
Are you asking how to split lines before certain pattern in Org source
file (general Emacs question unrelated to Org) or how to achieve hard
line break in exported file? In the latter case what is the target format?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-09 2:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08 11:19 Break lines in Query replace. Help Ypo
2022-10-08 13:03 ` tomas
2022-10-09 1:26 ` Solved: " Ypo
2022-10-09 2:44 ` Max Nikulin
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).