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 E1453200C63 for ; Thu, 11 May 2017 09:28:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DFF9E160BC7; Thu, 11 May 2017 07:28:05 +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 32586160BB2 for ; Thu, 11 May 2017 09:28:05 +0200 (CEST) Received: (qmail 3208 invoked by uid 500); 11 May 2017 07:28:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 2302 invoked by uid 99); 11 May 2017 07:28:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2017 07:28:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 767FCC134E for ; Thu, 11 May 2017 07:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.98 X-Spam-Level: * X-Spam-Status: No, score=1.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=marfeel-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id YU1a-kVEGcke for ; Thu, 11 May 2017 07:28:00 +0000 (UTC) Received: from mail-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7EC4E5FB4E for ; Thu, 11 May 2017 07:27:59 +0000 (UTC) Received: by mail-pg0-f50.google.com with SMTP id u187so10335868pgb.0 for ; Thu, 11 May 2017 00:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marfeel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ct2yhjHAOv8S++uKN4HBimEiqfpjYCAWfxCNwH7/HMc=; b=WfNdvO5SkdlLF5R00Z1KKsAvmNQLmPbs6F1W9FWGoHEgRQf5kJ4zDwJ01WnB5xV00Q xrUevGqrqeQWChK+eDaNSL7v/DP8tbM89yQShN+bdpzSRIXDJ23Tfcxkr2L6QZxn4AuN JnAPpOI06N2e10MyC44U7o/nTev0q+ZN6omqf1AD8jIrCGCHq7GGaFudMnpryhTLyF/q Z18mmieGpvKMSWqzdgsbjnkCFnTQglZPffRrcu6zpKp8ZDs/iY2l9vlO72aRLtnSYj9M OSFQ9Suo/dGhcivowQ94jFB54gBCBXT97QZmAV1qVyP+rRk1hhVpYgmLlsLdswLRw+/k o8uA== 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=ct2yhjHAOv8S++uKN4HBimEiqfpjYCAWfxCNwH7/HMc=; b=itM13ySsYjcZQFcUOC9T1PtrTvAOC1hc5gn78IigjRdDsjIGrfOkldajSZ+Tjuh1k+ vOpNu86XKPU/ITtPMTzuHfwmwHzzjzYbFKDIIEtJQaDhAXhdWgEFgmnS9Yx3P9imdWIm vAmAPeK4XKKWMiDBW5+50LEeVD23JGJnGUoABDqdQ0DrvjyqGya2S3D05/6GCafkbrd8 RjHC7JnV6tu8xfLatIGHtRY6tT75qIZNgyc6lep/zZGmUufvE8fQ9yEP0r03ssID0FDg oxnAQL4Y5kKZ3x8DMcVVrI+xTHEC1rbfeZBbEWT38r2SiH1lu1oHcNm61o+ZAb1UQcMc LLXg== X-Gm-Message-State: AODbwcC/p6eGSMzJIkAIyRyJjOyZw3FCBMzWsjU8pflbwHdVXoz5Zj3L 4+OesHTSZTa6oE/moJ3khpGCRf/gqQTYI5I= X-Received: by 10.99.121.138 with SMTP id u132mr10977989pgc.200.1494487677883; Thu, 11 May 2017 00:27:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.149.136 with HTTP; Thu, 11 May 2017 00:27:57 -0700 (PDT) In-Reply-To: <3ba1309d-b941-7a10-31ba-52c0282ac7da@apache.org> References: <3ba1309d-b941-7a10-31ba-52c0282ac7da@apache.org> From: David Kavanagh Date: Thu, 11 May 2017 09:27:57 +0200 Message-ID: Subject: Re: trimSpaces removing whitespace from html To: Tomcat Users List Content-Type: multipart/alternative; boundary=94eb2c19b428296d36054f3a8748 archived-at: Thu, 11 May 2017 07:28:06 -0000 --94eb2c19b428296d36054f3a8748 Content-Type: text/plain; charset=UTF-8 Thanks for the quick reply. This is the code that i added to the web.xml file to activate trimSpaces: trimSpaces true This is the HTML code: 1. Before class="mrf-article mrf-article--photo mrf-page mrf-noFillet mrf-author mrf-m mrf-image "> 1.After class="mrf-article mrf-article--photo mrf-page mrf-noFillet mrf-author mrf-mmrf-image"> 2.Before class="mrf-article mrf-article--photo mrf-page mrf-noFillet mrf-author mrf-video mrf-m mrf-image "> 2.After class="mrf-article mrf-article--photo mrf-page mrf-noFillet mrf-author mrf-mmrf-image"> 3.Before
  • 3.After
  • There are many more incidents of the same thing happening. Thanks On 10 May 2017 at 20:13, Mark Thomas wrote: > On 10/05/17 17:17, David Kavanagh wrote: > > Hey, > > > > I am wondering if anyone has come across this issue, and hopefully a way > > to fix it. > > When i enable the trimSpaces configuration option it removes the > > whitespace but also > > removes some whitespace from particular areas of the html. In my case, > > it removes white space between some of the classes in a class=" class1 > > class2 class3" string. In one case, the first example, it actually > > removes text as well. I am running Tomcat version 8.0.15. > > > > Here are some examples: > > The in-line images are removed by the list software. > > If you can include the example source and resulting HTML snippets > in-line, that would work better. > > Mark > > > > > Any advice on this would be greatly appreciated. > > > > Kind Regards > > > > David > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --94eb2c19b428296d36054f3a8748--