Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6EC4B200C2C for ; Fri, 3 Mar 2017 19:34:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6D685160B6D; Fri, 3 Mar 2017 18:34:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 915D7160B5E for ; Fri, 3 Mar 2017 19:34:15 +0100 (CET) Received: (qmail 17260 invoked by uid 500); 3 Mar 2017 18:34:14 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 17248 invoked by uid 99); 3 Mar 2017 18:34:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2017 18:34:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 029AD1A0487 for ; Fri, 3 Mar 2017 18:34:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id nK4wsqqK6P78 for ; Fri, 3 Mar 2017 18:34:12 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 656A45FBC1 for ; Fri, 3 Mar 2017 18:34:12 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id v186so21905904wmd.0 for ; Fri, 03 Mar 2017 10:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fW/wRYMpdmWN8nIKmLrTcyA2jRy8MvBq2LN8AKnbC9M=; b=c91G6eZMujRzUyMnSe3Z5bEaP6T0UM6p9vtq8dDVwybWVI8W9zq7pqjjP80Ec1p/1M nZBkovgZQwICwiIJ+B81X3YZCg/3fDQrKySGOrGuJl2cGsMnI8kiCdcd8uJ2eUHJbta8 HYRevIpkWx+Lp+TR2j1Ffd60fPOuwtGsJPPvxb5BUjW1R/teOiAUANczi6Yyb6FH4lP1 TMkZ7VLKOA3byqndttt59DFwHqmF23HJy4PAUJjhOBOjg0huPfjmiTyBZ0UI8J2eXTiP 2Fp/3D2LKPKUjqH0TlyM6H+4mGiasqPraiNkRxfCzl6R5TKCVXGKD0Lj1cofmg7gqXfx 3FSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fW/wRYMpdmWN8nIKmLrTcyA2jRy8MvBq2LN8AKnbC9M=; b=NzCiRBahWAIdclDRRw+1Tf4+KlgGGDjXQqmBMuqEEbneBPb68512v4VIC32XEGQSfx i0gi6x4taQX4mznB17wLy927raJMNH+z8UAaoeK+Z+4RVssb5IvCJdqDmymtY6iE8cO+ YA7qA6mDKOOEwNM6AAuom3Q0AaBTfTeBIQ8qgYpLm8KEYNf3sYjqcs2vre7Fqr7RDxnS ebb57U4S+6TwKVSr95gknCE29KGV6jS8dpvTErTBy5h6T3wgB3ySl7vFESY8lvMvzjxA 0y0w7RzhdvoPgybAq61MFJ7PKa5PMu4XExrArZQ4RQ+lL0Ou+BSj480aj5MNdhEe28as BcQg== X-Gm-Message-State: AMke39kDz1FxrD/jTtDzt20DEIXVE/ASkX7JdoHJZI9mCGkcojEUvu9BDVGBQNsrMblz02mkh3Uzv2CMb/fHLQ== X-Received: by 10.28.88.129 with SMTP id m123mr4133783wmb.28.1488566049312; Fri, 03 Mar 2017 10:34:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.169.48 with HTTP; Fri, 3 Mar 2017 10:34:08 -0800 (PST) In-Reply-To: <9c439aae-2815-80fd-4e5e-af90cdd8b661@internetallee.de> References: <20161008152632.DEBB33A0233@svn01-us-west.apache.org> <9f27cf0d-c174-4ffb-7523-26844b167961@internetallee.de> <2af3db3e-fb6c-fbda-0b01-c816c4e072d8@internetallee.de> <9c439aae-2815-80fd-4e5e-af90cdd8b661@internetallee.de> From: sebb Date: Fri, 3 Mar 2017 18:34:08 +0000 Message-ID: Subject: Re: svn commit: r1763904 - /jmeter/trunk/xdocs/stylesheets/site_printable.vsl To: dev@jmeter.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 03 Mar 2017 18:34:16 -0000 On 3 March 2017 at 18:24, Felix Schumacher wrote: > Am 03.03.2017 um 19:20 schrieb sebb: >> >> On 3 March 2017 at 18:07, Felix Schumacher >> wrote: >>> >>> Am 03.03.2017 um 18:51 schrieb sebb: >>>> >>>> On 1 March 2017 at 17:37, Felix Schumacher >>>> wrote: >>>>> >>>>> Am 01.03.2017 um 14:00 schrieb sebb: >>>>>> >>>>>> On 8 October 2016 at 16:26, wrote: >>>>>>> >>>>>>> Author: fschumacher >>>>>>> Date: Sat Oct 8 15:26:31 2016 >>>>>>> New Revision: 1763904 >>>>>>> >>>>>>> URL: http://svn.apache.org/viewvc?rev=1763904&view=rev >>>>>>> Log: >>>>>>> Apply stylesheet recursively to code and source elements. >>>>>> >>>>>> -1 >>>>>> >>>>>> Just discovered that this has broken several pages, for example >>>>>> >>>>>> get-started.html >>>>>> 1.4.7 Logging and error messages >>>>> >>>>> I have applied a fix. I think it is OK now. >>>> >>>> There's still an issue - most of the
 blocks now have spurious
>>>> spaces or line-breaks.
>>>> This messes up the layout.
>>>>
>>>> It's particularly noticeable for properties reference 20.22  - the
>>>> 'mode' description
>>>>
>>>> Also the code items on that page have leading and/or trailing spaces
>>>> which look odd.
>>>
>>> That's nothing new. Look at any link. The link will be too wide, which
>>> looks
>>> odd. Same for bold or other emphasized text fragments. That is one
>>> reason,
>>> why I would like to get rid of vsl.
>>>
>>>> I think the change should be reverted for both  and .
>>>
>>> That would mean, that we would have to change the documentation, as there
>>> are code/source elements, that have embedded other elements. Those would
>>> not
>>> work any more (and have been the reason for the original change).
>>>
>>> I will have a look at it.
>>>
>>> Most probably the macros would have to be written with less spaces in
>>> between them.
>>
>> That would help, but is going to be tedious.
>>
>> Or we don't allow embedded elements in code and/or source?
>> Are there many occurrences of these?
>>
>> A hack would be to have two versions - the original and the new one
>> that uses runloop.
>
> Have a look at r1785358, I hope it satisfies you (at least for the moment).
> The strange new lines in 20.22 are gone. As a plus, the links are shortened,
> also.
>
> The trick is to put comments at the end of lines, that are not really line
> endings. The comment for velocity seems to be "##".

Thanks, that looks fine.

> Felix
>
>>
>>> Regards,
>>>   Felix
>>>
>>>> The subsequent fix (r1785002) seems OK.
>>>>
>>>>> Thanks for spotting this.
>>>>>    Felix
>>>>>
>>>>>>> Modified:
>>>>>>>        jmeter/trunk/xdocs/stylesheets/site_printable.vsl
>>>>>>>
>>>>>>> Modified: jmeter/trunk/xdocs/stylesheets/site_printable.vsl
>>>>>>> URL:
>>>>>>>
>>>>>>>
>>>>>>> http://svn.apache.org/viewvc/jmeter/trunk/xdocs/stylesheets/site_printable.vsl?rev=1763904&r1=1763903&r2=1763904&view=diff
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ==============================================================================
>>>>>>> --- jmeter/trunk/xdocs/stylesheets/site_printable.vsl (original)
>>>>>>> +++ jmeter/trunk/xdocs/stylesheets/site_printable.vsl Sat Oct  8
>>>>>>> 15:26:31
>>>>>>> 2016
>>>>>>> @@ -133,7 +133,7 @@ $value.content
>>>>>>>     #end
>>>>>>>
>>>>>>>     #macro ( code $value)
>>>>>>> -$escape.getText($value.getText())
>>>>>>> +#runloop($value)
>>>>>>>     #end
>>>>>>>
>>>>>>>     #macro ( source $value)
>>>>>>> @@ -146,7 +146,7 @@ $value.content
>>>>>>>     
>>>>>>>     
>>>>>>>     >>>>>> width="1"
>>>>>>> height="1" vspace="0" hspace="0" border="0"/>
>>>>>>> ->>>>>> bgcolor="#ffffff">
$escape.getText($value.getText())
>>>>>>> +
#runloop($value)
>>>>>>> >>>>>> width="1" >>>>>>> height="1" vspace="0" hspace="0" border="0"/> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >