user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/3] hval: new should not strip leading spaces
  2016-01-09  9:45  5% [PATCH 0/3] a few minor small fixes Eric Wong
@ 2016-01-09  9:45  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-01-09  9:45 UTC (permalink / raw)
  To: meta

We should be able to use this for ASCII art and paragraphs
---
 lib/PublicInbox/Hval.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm
index 5a86935..d295f5c 100644
--- a/lib/PublicInbox/Hval.pm
+++ b/lib/PublicInbox/Hval.pm
@@ -21,8 +21,7 @@ my $enc_ascii = find_encoding('us-ascii');
 sub new {
 	my ($class, $raw, $href) = @_;
 
-	# we never care about leading/trailing whitespace
-	$raw =~ s/\A\s*//;
+	# we never care about trailing whitespace
 	$raw =~ s/\s*\z//;
 	bless {
 		raw => $raw,
-- 
EW


^ permalink raw reply related	[relevance 7%]

* [PATCH 0/3] a few minor small fixes
@ 2016-01-09  9:45  5% Eric Wong
  2016-01-09  9:45  7% ` [PATCH 2/3] hval: new should not strip leading spaces Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-01-09  9:45 UTC (permalink / raw)
  To: meta

3 changes:
      hval: use more appropriate hvals for documentation
      hval: new should not strip leading spaces
      view: fix Atom feed link in full message view page

 lib/PublicInbox/ExtMsg.pm     |  2 +-
 lib/PublicInbox/Hval.pm       |  3 +--
 lib/PublicInbox/SearchView.pm |  2 +-
 lib/PublicInbox/View.pm       | 29 ++++++++++++++++++++---------
 4 files changed, 23 insertions(+), 13 deletions(-)


^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-01-09  9:45  5% [PATCH 0/3] a few minor small fixes Eric Wong
2016-01-09  9:45  7% ` [PATCH 2/3] hval: new should not strip leading spaces Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.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).