Extra Line after heading

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Extra Line after heading

DeHaynes
I am noticing, what I think is a bug in XWiki.  After a heading XWiki creates an blank line.  See below

Headings

When I look at the code generated, it is a line with a class of "edit_section".  See below

Edit Section

Which is the edit icon in the top righthand corner of each section.

Is there a way to make it not put that icon on a line by itself?  For instance, could it be in a box that floats to the section position?

Has anybody else dealt with this?
Reply | Threaded
Open this post in threaded view
|

Re: Extra Line after heading

Jean SIMARD
Hi,

Can you send the code of the page.

You may use Velocity code which introduce blank lines if not escaped.

For example,

{{velocity}}
#set($mylist = [])
$mylist.add('first_element')
{{/velocity}}

but

{{velocity}}
#set($mylist = [])
#set($discard = $mylist.add('first_element'))
{{/velocity}}

will not.  You may also try to escape end lines by putting '##' at the
end of the line (I think I've read that somewhere).

Hopes this help.
--
Jean

On mar., 2014-03-04 at 06:00 -0800, DeHaynes wrote:

> I am noticing, what I think is a bug in XWiki.  After a heading XWiki creates
> an blank line.  See below
>
> <http://xwiki.475771.n2.nabble.com/file/n7589409/XWiki_Headings.png>
>
> When I look at the code generated, it is a line with a class of
> "edit_section".  See below
>
> <http://xwiki.475771.n2.nabble.com/file/n7589409/Edit_Section.png>
>
> Which is the edit icon in the top righthand corner of each section.
>
> Is there a way to make it not put that icon on a line by itself?  For
> instance, could it be in a box that floats to the section position?
>
> Has anybody else dealt with this?
>
>
>
>
> --
> View this message in context: http://xwiki.475771.n2.nabble.com/Extra-Line-after-heading-tp7589409.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Extra Line after heading

Timothy Ray Hays
Below is the wiki markup of the page.


= Info =

{{info}}
This template is meant to be a guide.  The goal is to try and help you
remember all the areas you need to document.  Your particular
documentation may not need all of these sections and it may need more.
You should add or delete as you feel appropriate.  Also you should delete
this message.
{{/info}}

----

= Message =

{{html wiki="true" clean="false"}}
<div style="border: 1px solid black;background-color: rgb(244, 204, 204);
padding: 5px;">
It is easy to get naming conflicts in the wiki.  For instance, you create
a document for the process of installing the software and you call the
document "Installation".  You do this for all your applications.  While
the wiki could handle this, it would be easy to confuse which installation
document is which.  To keep from having these naming <b>conflicts</b>,
replace the title of this page with the name created from the following
process.

* system name (An example is HMS.)
* a dash (with spaces on each side)
* server name (An example is "Web Server")
* a dash (with spaces on each side)
* the application name (An example is IIS)
* a dash (with spaces on each side)
* process name (An example is Installation)  

So it looks something like "System - Server - Application - Process".
After you do that, delete this box.  Using our examples it would look like
"HMS - Web Server - IIS - Installation".
</div>
{{/html}}

----

= Headings =
= HEADING LEVEL 1 =
Some text.
== Heading Level 2 ==

Some text.

=== Heading Level 3 ===

Some text.

==== Heading Level 4 ====

Some text.

===== Heading Level 5 =====

Some text.

====== Heading Level 6 ======

Some text.




________________________________________
Tim Hays
Sr. Systems Integrator
Strategic Management Systems
Wayne State University
Phone: (313)577-6871 <callto:313)577-8665>

Fax: (313)577-6644 <callto:313)577-8665>

-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Jean SIMARD
Sent: Tuesday, March 04, 2014 9:29 AM
To: XWiki Users
Subject: Re: [xwiki-users] Extra Line after heading

Hi,

Can you send the code of the page.

You may use Velocity code which introduce blank lines if not escaped.

For example,

{{velocity}}
#set($mylist = [])
$mylist.add('first_element')
{{/velocity}}

but

{{velocity}}
#set($mylist = [])
#set($discard = $mylist.add('first_element')) {{/velocity}}

will not.  You may also try to escape end lines by putting '##' at the end
of the line (I think I've read that somewhere).

Hopes this help.
--
Jean

On mar., 2014-03-04 at 06:00 -0800, DeHaynes wrote:

> I am noticing, what I think is a bug in XWiki.  After a heading XWiki
> creates an blank line.  See below
>
> <http://xwiki.475771.n2.nabble.com/file/n7589409/XWiki_Headings.png>
>
> When I look at the code generated, it is a line with a class of
> "edit_section".  See below
>
> <http://xwiki.475771.n2.nabble.com/file/n7589409/Edit_Section.png>
>
> Which is the edit icon in the top righthand corner of each section.
>
> Is there a way to make it not put that icon on a line by itself?  For
> instance, could it be in a box that floats to the section position?
>
> Has anybody else dealt with this?
>
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Extra-Line-after-heading-tp7589409.h
> tml Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users