[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: [babel] Tiny "problems"
From: |
Sébastien Vauban |
Subject: |
[Orgmode] Re: [babel] Tiny "problems" |
Date: |
Thu, 17 Dec 2009 15:24:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hi Eric,
Sébastien Vauban wrote:
> "Eric Schulte" wrote:
>>
>> [...]
>>
>> Currently I don't think we support indentation to the level of the noweb
>> reference in the original source-code block. At first glance that does
>> however seem to be a better default behavior. I'll look into this.
>
> [...]
>
> So, the only solution would be to indent the inserted block by the number of
> spaces in front of the `<<<code here>>>' sequence. Will be interested having
> that fixed, even if that's (only) medium priority.
In fact, a better specification is: copy whatever (any character) is in front
of `<<<code here>>>' in front of every line of the referenced block (same
amount of characters, be it spaces or something else).
That way, a commented SQL source block like the following would be correctly
outputted:
--8<---------------cut here---------------start------------->8---
-- -- set flag
-- UPDATE dossier
-- SET DossierSentToSector = @now
-- WHERE ID
-- IN (SELECT actID_fk
-- FROM actions
-- WHERE (actID = 338 AND actEtat = 3))
-- AND F1SignDate < @firstDayOfThisMonth
-- AND DossierSentToSector IS NULL
-- AND
-- <<ConditionForSector>>
--8<---------------cut here---------------end--------------->8---
Currently, the first line of the "condition" block is commented, the others
not, resulting in incorrect code being tangled.
With the above "spec", I guess all cases are covered. What do you think?
Best regards,
Seb
--
Sébastien Vauban
- [Orgmode] [babel] Tiny "problems", Sébastien Vauban, 2009/12/02
- Re: [Orgmode] [babel] Tiny "problems", Eric Schulte, 2009/12/05
- Re: [Orgmode] [babel] Tiny "problems", Dan Davison, 2009/12/05
- [Orgmode] Re: [babel] Tiny "problems", Sébastien Vauban, 2009/12/07
- Re: [Orgmode] Re: [babel] Tiny "problems", Eric Schulte, 2009/12/16
- [Orgmode] Re: [babel] Tiny "problems", Sébastien Vauban, 2009/12/17
- [Orgmode] Re: [babel] Tiny "problems",
Sébastien Vauban <=
- Re: [Orgmode] Re: [babel] Tiny "problems", Eric Schulte, 2009/12/17
- Re: [Orgmode] Re: [babel] Tiny "problems", Eric Schulte, 2009/12/17
- [Orgmode] Re: [babel] Tiny "problems", Sébastien Vauban, 2009/12/18
- Re: [Orgmode] Re: [babel] Tiny "problems", Eric Schulte, 2009/12/18