emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Too much text is interpreted as a code fragment
@ 2009-02-07  0:23 Daniel Clemente
  2009-02-07  1:59 ` Sebastian Rose
  2009-02-07  7:28 ` Carsten Dominik
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel Clemente @ 2009-02-07  0:23 UTC (permalink / raw)
  To: org-mode mailing list


Hi, with this file:

------------------------------------
***** blabla
      CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
<c:if test="<%= GroupPermission.contains(permissionChecker, group.getGroupId(), ActionKeys.MANAGE_LAYOUTS) %>">
------------------------------------

  I see this fragment:
------------------------------------
=>  0:33
<c:if test=
------------------------------------
  highlighted in face „org-code“. I think the => should not be interpreted as code markers (=these ones=).

  Change the colours to see it better while testing:
(set-face-background 'org-code "#141")
(set-face-foreground 'org-code "#1f1")
(set-face-underline-p 'org-code nil)



-- Daniel with org 6.20g

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Too much text is interpreted as a code fragment
  2009-02-07  0:23 Too much text is interpreted as a code fragment Daniel Clemente
@ 2009-02-07  1:59 ` Sebastian Rose
  2009-02-07 10:27   ` Daniel Clemente
  2009-02-07  7:28 ` Carsten Dominik
  1 sibling, 1 reply; 6+ messages in thread
From: Sebastian Rose @ 2009-02-07  1:59 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: org-mode mailing list

Hi Daniel,


I cannot reproduce this here.



Daniel Clemente <n142857@gmail.com> writes:
> Hi, with this file:
>
> ------------------------------------
> ***** blabla
>       CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
> <c:if test="<%= GroupPermission.contains(permissionChecker, group.getGroupId(), ActionKeys.MANAGE_LAYOUTS) %>">
> ------------------------------------
>
>   I see this fragment:
> ------------------------------------
> =>  0:33
> <c:if test=
> ------------------------------------


Is this the HTML source, or what you see in your browser, or both?



Here the export works as expected (formatting adjusted for readability):



<div id="outline-container-1" class="outline-2">
<h2 id="sec-1">1 blabla </h2>
<div id="text-1">

<p>
  <span class="timestamp-kwd">CLOCK: </span>
  <span class="timestamp">2009-02-06 dv 09:39</span>&ndash;
  <span class="timestamp">2009-02-06 dv 10:12</span>
  <code>&gt;  0:33 &lt;c:if test</code>"&lt;%=
   GroupPermission.contains(permissionChecker, group.getGroupId(),
    ActionKeys.MANAGE<sub>LAYOUTS</sub>) %&gt;"&gt;
</p>
</div>



Regards,


  Sebastian



>   highlighted in face „org-code“. I think the => should not be interpreted as code markers (=these ones=).
>
>   Change the colours to see it better while testing:
> (set-face-background 'org-code "#141")
> (set-face-foreground 'org-code "#1f1")
> (set-face-underline-p 'org-code nil)
>
>
>
> -- Daniel with org 6.20g
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.rose@emma-stil.de, sebastian_rose@gmx.de
Http:  www.emma-stil.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Too much text is interpreted as a code fragment
  2009-02-07  0:23 Too much text is interpreted as a code fragment Daniel Clemente
  2009-02-07  1:59 ` Sebastian Rose
@ 2009-02-07  7:28 ` Carsten Dominik
  2009-02-07 10:32   ` Daniel Clemente
  1 sibling, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2009-02-07  7:28 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: org-mode mailing list

Hi Daniel,

stuff you do not want interpreted should be protected as
an example, or with ": " at the beginning of the line.
If you do want this interpreted as HTML, put it into a BEGIN_HTML  
block or so.

- Carsten

On Feb 7, 2009, at 1:23 AM, Daniel Clemente wrote:

>
> Hi, with this file:
>
> ------------------------------------
> ***** blabla
>      CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
> <c:if test="<%= GroupPermission.contains(permissionChecker,  
> group.getGroupId(), ActionKeys.MANAGE_LAYOUTS) %>">
> ------------------------------------
>
>  I see this fragment:
> ------------------------------------
> =>  0:33
> <c:if test=
> ------------------------------------
>  highlighted in face „org-code“. I think the => should not be  
> interpreted as code markers (=these ones=).
>
>  Change the colours to see it better while testing:
> (set-face-background 'org-code "#141")
> (set-face-foreground 'org-code "#1f1")
> (set-face-underline-p 'org-code nil)
>
>
>
> -- Daniel with org 6.20g
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Too much text is interpreted as a code fragment
  2009-02-07  1:59 ` Sebastian Rose
@ 2009-02-07 10:27   ` Daniel Clemente
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Clemente @ 2009-02-07 10:27 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: org-mode mailing list


> I cannot reproduce this here.

  You may need to close the file and open it again.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Too much text is interpreted as a code fragment
  2009-02-07  7:28 ` Carsten Dominik
@ 2009-02-07 10:32   ` Daniel Clemente
  2009-02-07 11:34     ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Clemente @ 2009-02-07 10:32 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: org-mode mailing list

Carsten Dominik <dominik@science.uva.nl> writes:

> stuff you do not want interpreted should be protected as
> an example, or with ": " at the beginning of the line.
> If you do want this interpreted as HTML, put it into a BEGIN_HTML block or so.
>

  However, I think that the => of the clock should always be protected.

  I also see it strange that it only happens if a double quote is present:

----------------------
***** the bug happens with this one
     CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
a="b


***** doesn't happen (no highlight)
     CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
a=b

----------------------

  It's not so strange to write =" in an entry


-- Daniel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Too much text is interpreted as a code fragment
  2009-02-07 10:32   ` Daniel Clemente
@ 2009-02-07 11:34     ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2009-02-07 11:34 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: org-mode mailing list

On Feb 7, 2009, at 11:32 AM, Daniel Clemente wrote:

> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> stuff you do not want interpreted should be protected as
>> an example, or with ": " at the beginning of the line.
>> If you do want this interpreted as HTML, put it into a BEGIN_HTML  
>> block or so.
>>
>
>  However, I think that the => of the clock should always be protected.

Yes, you are right here.

Fixed, thanks.

- Carsten


>
>
>  I also see it strange that it only happens if a double quote is  
> present:
>
> ----------------------
> ***** the bug happens with this one
>     CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
> a="b
>
>
> ***** doesn't happen (no highlight)
>     CLOCK: [2009-02-06 dv 09:39]--[2009-02-06 dv 10:12] =>  0:33
> a=b
>
> ----------------------
>
>  It's not so strange to write =" in an entry
>
>
> -- Daniel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-07 11:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07  0:23 Too much text is interpreted as a code fragment Daniel Clemente
2009-02-07  1:59 ` Sebastian Rose
2009-02-07 10:27   ` Daniel Clemente
2009-02-07  7:28 ` Carsten Dominik
2009-02-07 10:32   ` Daniel Clemente
2009-02-07 11:34     ` Carsten Dominik

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).