mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix quoted CSV import
I am a bit baffled as to how this used to work before and does not work anymore. Anyway, it should be sufficient that we take the quoted text without verifying that the next character is the field separator. (Of course it would be better to make sure field separator follows, as then quotation marks could be used in the free-form texts.) Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									c5075b93a2
								
							
						
					
					
						commit
						54aa6dd91f
					
				
					 1 changed files with 3 additions and 5 deletions
				
			
		|  | @ -392,13 +392,11 @@ | |||
|         <xsl:choose> | ||||
|           <xsl:when test="substring($line, 1, 1) = '"'"> | ||||
|             <xsl:choose> | ||||
|               <xsl:when test="substring-before($line,'"$fs') != ''"> | ||||
|                 <xsl:value-of select="substring-before($line,'"$fs')"/> | ||||
|               <xsl:when test="substring-before(substring-after($line, '"'), '"') != ''"> | ||||
|                 <xsl:value-of select="substring-before(substring-after($line, '"'), '"')"/> | ||||
|               </xsl:when> | ||||
|               <xsl:otherwise> | ||||
|                 <xsl:if test="substring-after(substring-after($line, '"'), '"') = ''"> | ||||
|                   <xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/> | ||||
|                 </xsl:if> | ||||
|                 <xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/> | ||||
|               </xsl:otherwise> | ||||
|             </xsl:choose> | ||||
|           </xsl:when> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue