[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36631] get_first_help_sentence does not allow
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #36631] get_first_help_sentence does not allow for periods in the middle of sentence |
Date: |
Mon, 11 Jun 2012 17:49:01 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120511 Iceweasel/3.5.16 (like Firefox/3.5.16) |
URL:
<http://savannah.gnu.org/bugs/?36631>
Summary: get_first_help_sentence does not allow for periods
in the middle of sentence
Project: GNU Octave
Submitted by: carandraug
Submitted on: Mon 11 Jun 2012 05:49:00 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Hi
this is a really small thing but was annoying for the IO package. The
get_first_help_sentence identifies the end of a sentence by finding the first
period. This does not allow for the use of periods in a sentence. For example,
OpenOffice.Org (I actually can't think of many more examples, maybe an help
text would have to mention a decimal number on help text).
The attached changeset fixes that by finding the first period followed by a
non-word character.
I have also replaced the call to strfind by regexp so that the option "once"
can be used and there's no need for the (:) in min(ind(:)).
Carnë
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 11 Jun 2012 05:49:00 PM GMT Name: help_first_sentence.diff Size:
1kB By: carandraug
<http://savannah.gnu.org/bugs/download.php?file_id=26006>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36631>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36631] get_first_help_sentence does not allow for periods in the middle of sentence,
Carnë Draug <=