<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 32: base_text::trim</title><link>https://sourceforge.net/p/cppcms/feature-requests/32/</link><description>Recent changes to 32: base_text::trim</description><atom:link href="https://sourceforge.net/p/cppcms/feature-requests/32/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 27 Mar 2016 02:05:37 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cppcms/feature-requests/32/feed.rss" rel="self" type="application/rss+xml"/><item><title>base_text::trim</title><link>https://sourceforge.net/p/cppcms/feature-requests/32/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;i would like to propose setter &lt;code&gt;base_text::trim&lt;/code&gt; that will trim (like &lt;code&gt;boost::trim&lt;/code&gt;) the &lt;code&gt;value_&lt;/code&gt; in &lt;code&gt;base_text::load&lt;/code&gt;, so the &lt;code&gt;base_text::limits&lt;/code&gt; and &lt;code&gt;base_text::non_empty&lt;/code&gt; will validate input &lt;em&gt;text&lt;/em&gt; properly for my use case :).&lt;/p&gt;
&lt;p&gt;it is default behaviour for oneline inputs (except password) in nette framework, for example.&lt;/p&gt;
&lt;p&gt;"Logical Fallacy of Argument by Lack of Imagination": i have a hard time to imagine use case (in web environment), when for &lt;em&gt;any&lt;/em&gt; &lt;code&gt;base_text&lt;/code&gt; derived widget non-trimmed value would be desired, except &lt;code&gt;password&lt;/code&gt; and performance.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pavel kropitz</dc:creator><pubDate>Sun, 27 Mar 2016 02:05:37 -0000</pubDate><guid>https://sourceforge.netb87cee6d88e0907100187d45ba221dfe50bb08d8</guid></item></channel></rss>