Hello community, here is the log from the commit of package texmath for openSUSE:Factory checked in at 2019-03-06 15:47:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/texmath (Old) and /work/SRC/openSUSE:Factory/.texmath.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "texmath" Wed Mar 6 15:47:36 2019 rev:29 rq:681691 version:0.11.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/texmath/texmath.changes 2019-02-17 12:20:49.348209117 +0100 +++ /work/SRC/openSUSE:Factory/.texmath.new.28833/texmath.changes 2019-03-06 15:47:38.200446849 +0100 @@ -1,0 +2,10 @@ +Sun Mar 3 03:01:39 UTC 2019 - psim...@suse.com + +- Update texmath to version 0.11.2.1. + texmath (0.11.2.1) + + * OMML reader: Don't collapse `fName` to a string (#133). + This fixes cases where fName has some complexity, e.g. + a subscript or limit. + +------------------------------------------------------------------- Old: ---- texmath-0.11.2.tar.gz New: ---- texmath-0.11.2.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ texmath.spec ++++++ --- /var/tmp/diff_new_pack.wJHMAz/_old 2019-03-06 15:47:39.496446505 +0100 +++ /var/tmp/diff_new_pack.wJHMAz/_new 2019-03-06 15:47:39.520446499 +0100 @@ -19,7 +19,7 @@ %global pkg_name texmath %bcond_with tests Name: %{pkg_name} -Version: 0.11.2 +Version: 0.11.2.1 Release: 0 Summary: Conversion between formats used to represent mathematics License: GPL-2.0-or-later ++++++ texmath-0.11.2.tar.gz -> texmath-0.11.2.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.11.2/changelog new/texmath-0.11.2.1/changelog --- old/texmath-0.11.2/changelog 2019-01-31 07:09:29.000000000 +0100 +++ new/texmath-0.11.2.1/changelog 2019-03-03 00:46:12.000000000 +0100 @@ -1,3 +1,9 @@ +texmath (0.11.2.1) + + * OMML reader: Don't collapse `fName` to a string (#133). + This fixes cases where fName has some complexity, e.g. + a subscript or limit. + texmath (0.11.2) * Improved handling of \mathop etc (#126). We now allow operators like diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.11.2/src/Text/TeXMath/Readers/OMML.hs new/texmath-0.11.2.1/src/Text/TeXMath/Readers/OMML.hs --- old/texmath-0.11.2/src/Text/TeXMath/Readers/OMML.hs 2019-01-31 07:09:29.000000000 +0100 +++ new/texmath-0.11.2.1/src/Text/TeXMath/Readers/OMML.hs 2019-03-03 00:46:12.000000000 +0100 @@ -303,12 +303,10 @@ fName <- filterChildName (hasElemName "m" "fName") element baseExp <- filterChildName (hasElemName "m" "e") element >>= elemToBase - -- We need a string for the fname, but omml gives it to us as a - -- series of oMath elems. We're going to filter out the oMathRuns, - -- which should work for us most of the time. - let fnameString = concatMap expToString $ - concat $ mapMaybe (elemToExps) (elChildren fName) - return [EMathOperator fnameString, baseExp] + let fnameExp = case mconcat $ mapMaybe (elemToExps') (elChildren fName) of + [x] -> x + xs -> EGrouped xs + return [fnameExp, baseExp] elemToExps' element | isElem "m" "groupChr" element = do let gPr = filterChildName (hasElemName "m" "groupChrPr") element chr = gPr >>= @@ -470,16 +468,6 @@ isIdentifierOrSpace (ESpace _) = True isIdentifierOrSpace _ = False -expToString :: Exp -> String -expToString (ENumber s) = s -expToString (EIdentifier s) = s -expToString (EMathOperator s) = s -expToString (ESymbol _ s) = s -expToString (EText _ s) = s -expToString (EGrouped exps) = concatMap expToString exps -expToString (EStyled _ exps) = concatMap expToString exps -expToString _ = "" - -- The char attribute is a hex string getSymChar :: Element -> String getSymChar element diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/texmath-0.11.2/texmath.cabal new/texmath-0.11.2.1/texmath.cabal --- old/texmath-0.11.2/texmath.cabal 2019-01-31 07:09:29.000000000 +0100 +++ new/texmath-0.11.2.1/texmath.cabal 2019-03-03 00:46:12.000000000 +0100 @@ -1,5 +1,5 @@ Name: texmath -Version: 0.11.2 +Version: 0.11.2.1 Cabal-Version: >= 1.10 Build-type: Simple Synopsis: Conversion between formats used to represent mathematics.