w2l: Two minor changes to EPUB export to avoid validation errors from FlightCrew
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@134 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
90d1b47551
commit
fdf0488bd7
6 changed files with 30 additions and 17 deletions
|
@ -16,11 +16,11 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* Copyright: 2002-2011 by Henrik Just
|
||||
* Copyright: 2002-2012 by Henrik Just
|
||||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2011-05-07)
|
||||
* Version 1.2 (2012-02-26)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -238,10 +238,7 @@ public final class ConverterPalette extends ConverterBase {
|
|||
// According to the spec, the date has the format YYYY-MM-DDThh:mm:ss
|
||||
String sDate = metaData.getDate();
|
||||
if (sDate!=null) {
|
||||
if (sDate.length()==19 && sDate.charAt(10)=='T') {
|
||||
sDate = sDate.substring(0,10);
|
||||
}
|
||||
createMeta("date",sDate,declarations);
|
||||
createMeta("date",Misc.dateOnly(sDate),declarations);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue