diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-04-19 15:40:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-20 10:57:47 -0700 |
commit | dfe509222271a66d8852d3f16542e6b1420fb0eb (patch) | |
tree | 37aacb36b291938689f8199323b092475ed7ecd8 /subsurface-mobile-main.cpp | |
parent | ff5c04eb9757ef12d451be2ab0597a88db85c068 (diff) | |
download | subsurface-dfe509222271a66d8852d3f16542e6b1420fb0eb.tar.gz |
Identify user provided notes in plain text in replan
This is another attept at the problem if identifying a potentially
user supplied text in the dive notes upon replannig a dive.
It gets rid of the user visable position markers (*!* and ***) and
cirumvents problems with mark-up by first converting the old notes
to plan text (assuming that user only enters plain text in the notes
field as we do in other places as well). Then the automatically added
part is identified by locating the disclaimer in the text (if the user
edited/delted the disclaimer or changed langue in between it is her
problem to manually delete the old plan).
Everything from the disclaimer on is deleted and replaced by the new plan.
If the disclaimer is not found, the new plan is appended to the old notes.
This way we make sure no information gets automatically deleted.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'subsurface-mobile-main.cpp')
0 files changed, 0 insertions, 0 deletions