mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 12:29:27 +01:00 
			
		
		
		
	codetools: FixFPDocFragment: fixed endless loop
git-svn-id: trunk@34928 -
This commit is contained in:
		
							parent
							
								
									1710736e19
								
							
						
					
					
						commit
						4d4992d4bf
					
				@ -502,7 +502,7 @@ begin
 | 
			
		||||
      case p^ of
 | 
			
		||||
      #0..#8,#11,#12,#14..#31,#127:
 | 
			
		||||
        begin
 | 
			
		||||
          if (p^=#0) and (p-PChar(Fragment)=length(Fragment)) then
 | 
			
		||||
          if (p^=#0) and (p-PChar(Fragment)>=length(Fragment)) then
 | 
			
		||||
          begin
 | 
			
		||||
            // reached end of fragment
 | 
			
		||||
            break;
 | 
			
		||||
@ -520,7 +520,9 @@ begin
 | 
			
		||||
        ParseAmpersand;
 | 
			
		||||
      '"','''':
 | 
			
		||||
        if not AllowTags then
 | 
			
		||||
          HandleSpecialChar;
 | 
			
		||||
          HandleSpecialChar
 | 
			
		||||
        else
 | 
			
		||||
          inc(p);
 | 
			
		||||
      else
 | 
			
		||||
        inc(p);
 | 
			
		||||
      end;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user