Paul Stanford, 46, saw the woman in the Station Tavern pub, in Station Square, Cambridge, on 3 February.
Stanford, who was subject to a restraining order preventing him from contacting her, began to argue with her before spitting in her face.
More from Peterborough Crown Court
View all Peterborough Crown Court coverage
- Cambridge Arsonist Nabbed After Setting Christmas Decorations Ablaze
- Man Locked Up for Shocking Attacks
- Stalker Jailed for Fake 999 Call Claiming Ex-Partner Dead
- Church Volunteer Groomed Teen with 8,000 Inappropriate Messages
- Cambridge man jailed for vicious kidnap and robbery spree
- Cambridgeshire Drug Dealer Locked Up for Supplying Class A and B Drugs
More from Peterborough Crown Court
View all Peterborough Crown Court coverage
- Cambridge Arsonist Nabbed After Setting Christmas Decorations Ablaze
- Man Locked Up for Shocking Attacks
- Stalker Jailed for Fake 999 Call Claiming Ex-Partner Dead
- Church Volunteer Groomed Teen with 8,000 Inappropriate Messages
- Cambridge man jailed for vicious kidnap and robbery spree
- Cambridgeshire Drug Dealer Locked Up for Supplying Class A and B Drugs